- java.lang.Object
-
- net.hamnaberg.json.PrettyPrinter
-
public final class PrettyPrinter extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PrettyPrinter(int charsPerLevel)PrettyPrinter(int charsPerLevel, boolean spaceAfterColon, boolean dropNullKeys)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PrettyPrinterdropNullKeys(boolean choice)static PrettyPrinternospaces()static PrettyPrinterspaces2()static PrettyPrinterspaces4()java.lang.StringwriteString(Json.JValue value)
-
-
-
Method Detail
-
nospaces
public static PrettyPrinter nospaces()
-
spaces2
public static PrettyPrinter spaces2()
-
spaces4
public static PrettyPrinter spaces4()
-
dropNullKeys
public PrettyPrinter dropNullKeys(boolean choice)
-
writeString
public java.lang.String writeString(Json.JValue value)
-
-