Class StringIndenter
java.lang.Object
org.codehaus.jettison.util.StringIndenter
indent json, assumes the input is not yet indented. here is an example:
{
"FastResponseJs":{
"ajaxElements":{
"AjaxMapEntry":[
{
"theKey":{
"@class":"string",
"$":"ajax1a"
},
"theValue":{
"@class":"AjaxEvent",
"ajaxSendFormNames":{
"string":"ajax1"
},
"ajaxEventType":"NORMAL",
"eventName":"onblur",
"ajaxId":"PRLZY5QZ",
"screenElementId":"ajax1a",
"asynchronous":true,
"disableValidation":true
}
},
{
"theKey":{
...
Usage: String formatted = new StringIndenter(jsonString).result();
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StringIndenter
- Parameters:
theJson- is the json to format indenter
-
-
Method Details
-
result
-