protected static class JSONOutputter.JSONWriter
extends java.lang.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 java.lang.String |
cleanJSON(java.lang.String s) |
void |
object(java.util.function.Consumer<JSONOutputter.Writer> callback) |
void |
object(int indent,
java.util.function.Consumer<JSONOutputter.Writer> callback) |
static java.lang.String |
objectToJSON(java.util.function.Consumer<JSONOutputter.Writer> callback) |
protected static java.lang.String cleanJSON(java.lang.String s)
public void object(int indent,
java.util.function.Consumer<JSONOutputter.Writer> callback)
public void object(java.util.function.Consumer<JSONOutputter.Writer> callback)
public static java.lang.String objectToJSON(java.util.function.Consumer<JSONOutputter.Writer> callback)