| Modifier and Type | Method and Description |
|---|---|
JSONStringer |
JSONStringer.array()
Begins encoding a new array.
|
(package private) JSONStringer |
JSONStringer.close(JSONStringer.Scope empty,
JSONStringer.Scope nonempty,
java.lang.String closeBracket)
Closes the current scope by appending any necessary whitespace and the
given bracket.
|
JSONStringer |
JSONStringer.endArray()
Ends encoding the current array.
|
JSONStringer |
JSONStringer.endObject()
Ends encoding the current object.
|
JSONStringer |
JSONStringer.key(java.lang.String name)
Encodes the key (property name) to this stringer.
|
JSONStringer |
JSONStringer.object()
Begins encoding a new object.
|
(package private) JSONStringer |
JSONStringer.open(JSONStringer.Scope empty,
java.lang.String openBracket)
Enters a new scope by appending any necessary whitespace and the given
bracket.
|
JSONStringer |
JSONStringer.value(boolean value)
Encodes
value to this stringer. |
JSONStringer |
JSONStringer.value(double value)
Encodes
value to this stringer. |
JSONStringer |
JSONStringer.value(long value)
Encodes
value to this stringer. |
JSONStringer |
JSONStringer.value(java.lang.Object value)
Encodes
value. |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
JSONObject.writeTo(JSONStringer stringer) |
(package private) void |
JSONArray.writeTo(JSONStringer stringer) |