Here I would like to present a tool for formatting and coloring raw JSON code. Very often if you use JSON generated by server side code it will be in a nice compact format but at the same time it will be quite hard to read it and possibly alter it. So the tool allows you to make your JSON more readable. For example if you have code like this:

[[{anArray:[2,3,4,["string1","string2",{aa:[]}],{"type":"simpleObject"},null],abotherProperty:"",anObject:{justANumber:2,func:function(){if(1>0)return false; else return true;}}}],true]

it is a real challenge to find something you need inside the graph. In this case the JSON formatter is the right tool for you.

You can see it at: http://bodurov.com/JsonFormatter/

The tool is actually just a single simple HTML page with inline script and styles. There are no includes or dependencies. There is no server code so it will run on any operating system (Windows, Mac, Linux and what have you) under any modern browser, the best formatting I think is under Firefox, but it works fine with Internet Explorer and Safari.

You can download it and use it from your desktop here: http://www.codeplex.com/QuickJsonFormatter

Feedback

Posted on 7/5/2008 11:24:19 AM

Vladimir,
That is absolutely wonderful. I've been looking everywhere for something like this! This is absolutely ideal. Have you told the good people at http://www.json.org/ what you've done?

Posted on 7/5/2008 12:25:14 PM

Thank you Phil!

I rather think that this is a simple and not so special program but I am glad that you find it useful.

Please post your comments:

Name:  
Email (optional): Your email address will not be posted.
URL (optional):
Comments: HTML will be ignored, URLs will be converted to hyperlinks
Use [code] if(true) alert("OK"); [/code] for source code
 
Enter the text you see in the box: