Have you tried this?
Bob
2008-09-29 17:01:30
I use http://curiousconcept.com/jsonformatter to format computer generated jsons. It makes it much readable.
Remember that JSON is just a Javascript Object Literal with fancy clothes. You should be able to use any Javascript Beautifier to clean it up.
You can download http://www.thomasfrank.se/json_editor.html and run it locally on your own data, although it is an editor rather than a formatter.
http://www.jsonlint.com/ is also a useful validation and reformatting tool.
If you need a desktop json editor i could prefer JSONpad (JSON Editor/Viewer/Formatter for Adobe Air Runtime)
On windows I go for: http://jsonviewer.codeplex.com/
Handy for pulling raw JSON responses from Firebug and parsing it for me.