public class JsonPrettyPrinter extends Object
| Constructor and Description |
|---|
JsonPrettyPrinter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
prettyPrint(InputStream in,
OutputStream out,
boolean compact,
boolean lenient)
pretty print
|
static String |
prettyPrint(String json)
pretty print the given json string
|
public static String prettyPrint(String json) throws Exception
json - Exceptionpublic static void prettyPrint(InputStream in, OutputStream out, boolean compact, boolean lenient) throws Exception
in - out - compact - lenient - ExceptionCopyright © 2018 BITPlan GmbH. All rights reserved.