SyntaxFix
Write A Post
Hire A Developer
Questions
In JSONLib you can use this:
String jsonTxt = JSONUtils.valueToString(json, 8, 4);
From the Javadoc: