Possible Duplicate:
Pretty-Print JSON in Java?
I am using Java JSON library provided by google for google app engine. My JSON output somewhat looks like this:
{"data":[{"name":"John"},{"age":10}],"status":"success"}
Not human-readable and hard to debug. How can I turn the output into something like this?
{
"data":[
{
"name":"John"
},
{
"age":10
}
],
"status":"success"
}
Or some other form instead of "one-line output".