Posted in | Posted on 09-11-2010 | 2,503 views
I'm not sure how useful this is, but earlier today I needed to quickly turn a JSON string into formatted data. I could do this in ColdFusion with one line of code, but I wanted it even faster. I found a great online viewer here: http://jsonviewer.stack.hu/ but I thought it would be kind of fun to build it into CFBuilder as well. I whipped up the following extension in about 20 minutes: http://jsonview.riaforge.org. It allows you to enter either a URL or a block of JSON:

Once entered, you just submit the form and can then see the rendered JSON:

Probably not very useful - but heck - once again let me just say how much I fracking love the fact that I was able to extend ColdFusion Builder to meet my needs!


On a related note to this, FireBug now has HTML/JSON tabs in their AJAX request monitoring such that if you get a response that is seen as AJAX or HTML, they will give you a tab to see raw data rendered as something. That's been suuuuper helpful for debugging ColdFusion errors that come back in my AJAX :D
[Add Comment] [Subscribe to Comments]