public class ToJson extends Object implements AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static class |
ToJson.JsonArray |
static class |
ToJson.JsonNumber |
static class |
ToJson.JsonObject |
static class |
ToJson.JsonString |
static class |
ToJson.JsonValue |
| Constructor and Description |
|---|
ToJson(PrintWriter writer) |
ToJson(PrintWriter writer,
boolean pretty) |
public ToJson(PrintWriter writer)
public ToJson(PrintWriter writer, boolean pretty)
public void put(String name, ToJson.JsonValue value)
public void close()
close in interface AutoCloseable