Monday, June 29, 2009

[jQuery] Re: G is undefined

In addition to www.jsonlint.org, since you're developing on Windows, head
over here right now and get the Fiddler debugging proxy server:

http://www.fiddler2.com/

Then, go to the Extensions page:

http://www.fiddler2.com/Fiddler2/extensions.asp

At the very least get the JSON Viewer (at the bottom of the page, misnamed
as JSON Inspector), and check out some of the other extensions too. The
syntax highlighting package and JavaScript formatter are especially useful.

The JSON Viewer will both install into Fiddler, so you can view JSON data
directly in Fiddler, and you can also run it as a standalone app: Copy and
paste your JSON text into the Text tab and then switch to the Viewer tab to
inspect it.

What the JSON Viewer does that's nice is it shows you the JSON data in a
tree structure so you can see how you'd drill down into it with JavaScript
code.

-Mike

> From: Michael Geary
>
> You can test [your JSON code] at:
>
> www.jsonlint.org

No comments: