public class PrettyJSON extends Object
| Modifier and Type | Method and Description |
|---|---|
static PrettyJSON |
instance() |
String |
prettyPrint(org.json.JSONObject object,
boolean primitivesFirst) |
String |
prettyPrint(org.json.JSONObject object,
boolean primitivesFirst,
String indentAll)
Pretty prints the specified object
|
public String prettyPrint(org.json.JSONObject object, boolean primitivesFirst)
public String prettyPrint(org.json.JSONObject object, boolean primitivesFirst, String indentAll)
object - the objectprimitivesFirst - whether you want the primitive values listed firstindentAll - the amount of initial indent you want for all lines.public static PrettyJSON instance()
Copyright © 2023. All rights reserved.