protected static class JSONOutputter.JSONWriter extends Object
Our very own little JSON writing class. For usage, see the test cases in JSONOutputterTest.
For the love of all that is holy, don't try to write JSON multithreaded. It should go without saying that this is not threadsafe.
| Modifier and Type | Method and Description |
|---|---|
protected static String |
cleanJSON(String s) |
void |
object(java.util.function.Consumer<JSONOutputter.Writer> callback) |
void |
object(int indent,
java.util.function.Consumer<JSONOutputter.Writer> callback) |
static String |
objectToJSON(java.util.function.Consumer<JSONOutputter.Writer> callback) |
public void object(int indent,
java.util.function.Consumer<JSONOutputter.Writer> callback)
public void object(java.util.function.Consumer<JSONOutputter.Writer> callback)
public static String objectToJSON(java.util.function.Consumer<JSONOutputter.Writer> callback)