SyntaxFix
Write A Post
Hire A Developer
Questions
int spacesToIndentEachLevel = 2; new JSONObject(jsonString).toString(spacesToIndentEachLevel);
Using org.json.JSONObject (built in to JavaEE and Android)
org.json.JSONObject