| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| pack-priv final StringBuilder | |
| private int | |
| private static final int | |
| private boolean | |
| private static final int | |
| private static final int | |
| private static final int | |
| private JsonWriter. | |
| private boolean | |
| private final IntArray |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public JsonString | |
| public JsonString | |
| public JsonString | |
| public StringBuilder | |
| public JsonString | |
| public JsonString | |
| public JsonString | |
| private void | |
| public JsonString | |
| public JsonString | |
| public JsonString | |
| private void | |
| public void | |
| public JsonString | |
| public JsonString | |
| public JsonString | |
| public JsonString | |
| public JsonString | |
| public JsonString | |
| public JsonString | |
| public void | |
| public void | setQuoteLongValues(boolean quoteLongValues)
When true, long, double, BigInteger, BigDecimal types are output as strings to prevent truncation in languages like JavaScript and PHP. |
| public String | |
| public JsonString | |
| public JsonString | |
| public JsonString | |
| public JsonString | |
| public JsonString | |
| public JsonString | |
| public JsonString |
| array | back to summary |
|---|---|
| private static final int array | |
| buffer | back to summary |
|---|---|
| pack-priv final StringBuilder buffer | |
| current | back to summary |
|---|---|
| private int current | |
| isObject | back to summary |
|---|---|
| private static final int isObject | |
| named | back to summary |
|---|---|
| private boolean named | |
| needsComma | back to summary |
|---|---|
| private static final int needsComma | |
| none | back to summary |
|---|---|
| private static final int none | |
| object | back to summary |
|---|---|
| private static final int object | |
| outputType | back to summary |
|---|---|
| private JsonWriter. | |
| quoteLongValues | back to summary |
|---|---|
| private boolean quoteLongValues | |
| stack | back to summary |
|---|---|
| private final IntArray stack | |
| JsonString | back to summary |
|---|---|
| public JsonString() | |
| JsonString | back to summary |
|---|---|
| public JsonString(int initialBufferSize) | |
| array | back to summary |
|---|---|
| public JsonString array() | |
| array | back to summary |
|---|---|
| public JsonString array(String name) | |
| close | back to summary |
|---|---|
| public JsonString close() | |
| getBuffer | back to summary |
|---|---|
| public StringBuilder getBuffer() | |
| json | back to summary |
|---|---|
| public JsonString json(String json) Writes the specified JSON string, without quoting or escaping. | |
| json | back to summary |
|---|---|
| public JsonString json(String name, String json) Writes the specified JSON string, without quoting or escaping. | |
| name | back to summary |
|---|---|
| public JsonString name(String name) | |
| nameValue | back to summary |
|---|---|
| private void nameValue(String name) | |
| object | back to summary |
|---|---|
| public JsonString object() | |
| object | back to summary |
|---|---|
| public JsonString object(String name) | |
| pop | back to summary |
|---|---|
| public JsonString pop() | |
| requireCommaOrName | back to summary |
|---|---|
| private void requireCommaOrName() | |
| reset | back to summary |
|---|---|
| public void reset() | |
| set | back to summary |
|---|---|
| public JsonString set(String name, Object value) Prefer calling the more specific set() methods. | |
| set | back to summary |
|---|---|
| public JsonString set(String name, String value) | |
| set | back to summary |
|---|---|
| public JsonString set(String name, boolean value) | |
| set | back to summary |
|---|---|
| public JsonString set(String name, int value) | |
| set | back to summary |
|---|---|
| public JsonString set(String name, long value) | |
| set | back to summary |
|---|---|
| public JsonString set(String name, float value) | |
| set | back to summary |
|---|---|
| public JsonString set(String name, double value) | |
| setOutputType | back to summary |
|---|---|
| public void setOutputType(JsonWriter. Sets the type of JSON output. Default is | |
| setQuoteLongValues | back to summary |
|---|---|
| public void setQuoteLongValues(boolean quoteLongValues) When true, long, double, BigInteger, BigDecimal types are output as strings to prevent truncation in languages like JavaScript and PHP. This is not necessary when using libgdx, which handles these types without truncation. Default is false. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| value | back to summary |
|---|---|
| public JsonString value(Object value) Prefer calling the more specific value() methods. | |
| value | back to summary |
|---|---|
| public JsonString value(String value) | |
| value | back to summary |
|---|---|
| public JsonString value(boolean value) | |
| value | back to summary |
|---|---|
| public JsonString value(int value) | |
| value | back to summary |
|---|---|
| public JsonString value(long value) | |
| value | back to summary |
|---|---|
| public JsonString value(float value) | |
| value | back to summary |
|---|---|
| public JsonString value(double value) | |