Click to search Andy Jarrett.co.uk RSS feed

Loading Twitter

Visualize JSON

Working a little bit like <CFDUMP >, JSON Visualization allows you to quickly view your structures outline. Also from the left hand menu there are some basic options to manipulate/preserve the data futher.

If you want to test it out below is a block of JSON from Wikipedia

view plain print about
1{
2"firstName": "John",
3"lastName": "Smith",
4"age": 25,
5"address": {
6"streetAddress": "21 2nd Street",
7"city": "New York",
8"state": "NY",
9"postalCode": "10021"
10},
11"phoneNumber": [
12{ "type": "home", "number": "212 555-1234" },
13{ "type": "fax", "number": "646 555-4567" }
14],
15"newSubscription": false,
16"companyName": null
17}

Comments Comments (2) | Print Print | Send Send | 1326 Views

(Comment Moderation is enabled. Your comment will not appear until approved.)
Talking of CFDUMP in Javascript it's worth having a look at this:

http://www.netgrow.com.au/files/javascript_dump.cf...

Which emulates it within Javascript. I've found it really handy when I need specific information back quickly. As useful as Firebug is it can sometimes give you a bit too much information back.

Also is Chris Jordon's ColdFusion Function Javascript library:
http://cjordan.us/index.cfm/2007/5/9/CFJS--ColdFus...

Great stuff!
DiarmuidKing's Gravatar Posted By DiarmuidKing @ 3/17/10 2:48 PM
the dump plugin for jquery $.dump(x) is also a great tool when debugging complex javascript variables
BlogCFC by Raymond Camden + Twitter @AndyJ + ColdFusion jobs + Contact Me + Snippets/Downloads + RSS .