Package | Description |
---|---|
org.cakelab.json |
This package contains a JSON API and a JSON/POJO codec.
|
org.cakelab.json.codec |
Modifier and Type | Class and Description |
---|---|
class |
JSONPrettyprint |
Modifier and Type | Method and Description |
---|---|
JSONStringFormatter |
JSONPrettyprint.create(JSONStringFormatterConfiguration config) |
Modifier and Type | Method and Description |
---|---|
static void |
JSONObject.appendValue(JSONStringFormatter s,
java.lang.Object o) |
java.lang.String |
JSONCompoundType.toString(JSONStringFormatter formatter) |
java.lang.String |
JSONArray.toString(JSONStringFormatter s) |
java.lang.String |
JSONObject.toString(JSONStringFormatter s) |
Modifier and Type | Method and Description |
---|---|
JSONStringFormatter |
JSONStringFormatter.create(JSONStringFormatterConfiguration format)
This is a factory method, called whenever a new formatter is requested.
|
static JSONStringFormatter |
JSONCodec.getDefaultStringFormatter()
Returns a string formatter with the default configuration used to encode
Java objects to JSON.
|