Package sk.antons.json.util
Class JsonFormat
- java.lang.Object
-
- sk.antons.json.util.JsonFormat
-
public class JsonFormat extends Object
Convert json in unparsed form. It requires correct json to produce correct output.- Author:
- antons
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonFormatcutStringLiterals(int num)static JsonFormatfrom(Reader json)static JsonFormatfrom(String json)JsonFormatindent(int num, char c)JsonFormatnoindent()StringtoText()voidtoWriter(Writer w)
-
-
-
Method Detail
-
from
public static JsonFormat from(String json)
-
from
public static JsonFormat from(Reader json)
-
noindent
public JsonFormat noindent()
-
indent
public JsonFormat indent(int num, char c)
-
cutStringLiterals
public JsonFormat cutStringLiterals(int num)
-
toText
public String toText()
-
toWriter
public void toWriter(Writer w)
-
-