| Package | Description |
|---|---|
| tr.com.terrayazilim.json | |
| tr.com.terrayazilim.json.stream |
| Modifier and Type | Method and Description |
|---|---|
JsonObject |
JsonObject.accumulate(String key,
Object value)
Accumulate values under a key.
|
JsonObject |
JsonObject.append(String key,
Object value)
Append values to the beginArray under a key.
|
Object |
JsonArray.get(int index)
Get the object value associated with an index.
|
Object |
JsonObject.get(String key)
Get the value beginObject associated with a key.
|
BigDecimal |
JsonArray.getBigDecimal(int index)
Get the BigDecimal value associated with an index.
|
BigDecimal |
JsonObject.getBigDecimal(String key)
Get the BigDecimal value associated with a key.
|
BigInteger |
JsonArray.getBigInteger(int index)
Get the BigInteger value associated with an index.
|
BigInteger |
JsonObject.getBigInteger(String key)
Get the BigInteger value associated with a key.
|
boolean |
JsonArray.getBoolean(int index)
Get the boolean value associated with an index.
|
boolean |
JsonObject.getBoolean(String key)
Get the boolean value associated with a key.
|
double |
JsonArray.getDouble(int index)
Get the double value associated with an index.
|
double |
JsonObject.getDouble(String key)
Get the double value associated with a key.
|
<E extends Enum<E>> |
JsonArray.getEnum(Class<E> clazz,
int index)
Get the enum value associated with an index.
|
<E extends Enum<E>> |
JsonObject.getEnum(Class<E> clazz,
String key)
Get the enum value associated with a key.
|
float |
JsonArray.getFloat(int index)
Get the float value associated with a key.
|
float |
JsonObject.getFloat(String key)
Get the float value associated with a key.
|
int |
JsonArray.getInt(int index)
Get the int value associated with an index.
|
int |
JsonObject.getInt(String key)
Get the int value associated with a key.
|
JsonArray |
JsonArray.getJSONArray(int index)
Get the JsonArray associated with an index.
|
JsonArray |
JsonObject.getJSONArray(String key)
Get the JsonArray value associated with a key.
|
JsonObject |
JsonArray.getJSONObject(int index)
Get the JsonObject associated with an index.
|
JsonObject |
JsonObject.getJSONObject(String key)
Get the JsonObject value associated with a key.
|
long |
JsonArray.getLong(int index)
Get the long value associated with an index.
|
long |
JsonObject.getLong(String key)
Get the long value associated with a key.
|
Number |
JsonArray.getNumber(int index)
Get the Number value associated with a key.
|
Number |
JsonObject.getNumber(String key)
Get the Number value associated with a key.
|
String |
JsonArray.getString(int index)
Get the string associated with an index.
|
String |
JsonObject.getString(String key)
Get the string associated with a key.
|
JsonObject |
JsonObject.increment(String key)
Increment a property of a JsonObject.
|
String |
JsonArray.join(String separator)
Make a string from the contents of this JsonArray.
|
static String |
JsonObject.numberToString(Number number)
Produce a string from a Number.
|
JsonArray |
JsonArray.put(double value)
Append a double value.
|
JsonArray |
JsonArray.put(int index,
boolean value)
Put or replace a boolean value in the JsonArray.
|
JsonArray |
JsonArray.put(int index,
Collection<?> value)
Put a value in the JsonArray, where the value will be a JsonArray which is produced from a
Collection.
|
JsonArray |
JsonArray.put(int index,
double value)
Put or replace a double value.
|
JsonArray |
JsonArray.put(int index,
int value)
Put or replace an int value.
|
JsonArray |
JsonArray.put(int index,
long value)
Put or replace a long value.
|
JsonArray |
JsonArray.put(int index,
Map<?,?> value)
Put a value in the JsonArray, where the value will be a JsonObject that is produced from a Map.
|
JsonArray |
JsonArray.put(int index,
Object value)
Put or replace an object value in the JsonArray.
|
JsonObject |
JsonObject.put(String key,
boolean value)
Put a key/boolean pair in the JsonObject.
|
JsonObject |
JsonObject.put(String key,
Collection<?> value)
Put a key/value pair in the JsonObject, where the value will be a JsonArray which is produced
from a Collection.
|
JsonObject |
JsonObject.put(String key,
double value)
Put a key/double pair in the JsonObject.
|
JsonObject |
JsonObject.put(String key,
float value)
Put a key/float pair in the JsonObject.
|
JsonObject |
JsonObject.put(String key,
int value)
Put a key/int pair in the JsonObject.
|
JsonObject |
JsonObject.put(String key,
long value)
Put a key/long pair in the JsonObject.
|
JsonObject |
JsonObject.put(String key,
Map<?,?> value)
Put a key/value pair in the JsonObject, where the value will be a JsonObject which is produced
from a Map.
|
JsonObject |
JsonObject.put(String key,
Object value)
Put a key/value pair in the JsonObject.
|
JsonObject |
JsonObject.putOnce(String key,
Object value)
Put a key/value pair in the JsonObject, but only if the key and the value are both non-null,
and only if there is not already a member with that name.
|
JsonObject |
JsonObject.putOpt(String key,
Object value)
Put a key/value pair in the JsonObject, but only if the key and the value are both non-null.
|
static void |
JsonObject.testValidity(Object o)
Throw an exception if the beginObject is a NaN or infinite number.
|
JsonArray |
JsonObject.toJSONArray(JsonArray names)
Produce a JsonArray containing the values of the members of this JsonObject.
|
JsonObject |
JsonArray.toJSONObject(JsonArray names)
Produce a JsonObject by combining a JsonArray of names with the values of this JsonArray.
|
String |
JsonObject.toString(int indentFactor)
Make a pretty-printed JSON text of this JsonObject.
|
String |
JsonArray.toString(int indentFactor)
Make a pretty-printed JSON text of this JsonArray.
|
static String |
JsonObject.valueToString(Object value)
Make a JSON text of an Object value.
|
Writer |
JsonObject.write(Writer writer)
Write the contents of the JsonObject as JSON text to a writer.
|
Writer |
JsonArray.write(Writer writer)
Write the contents of the JsonArray as JSON text to a writer.
|
Writer |
JsonObject.write(Writer writer,
int indentFactor,
int indent)
Write the contents of the JsonObject as JSON text to a writer.
|
Writer |
JsonArray.write(Writer writer,
int indentFactor,
int indent)
Write the contents of the JsonArray as JSON text to a writer.
|
| Constructor and Description |
|---|
JsonArray(JsonTokener x)
Construct a JSONArray from a JsonTokener.
|
JsonArray(Object array)
Construct a JSONArray from an array
|
JsonArray(String source)
Construct a JSONArray from a source JSON text.
|
JsonObject(JsonTokener x)
Construct a JSONObject from a JsonTokener.
|
JsonObject(String source)
Construct a JSONObject from a source JSON text string.
|
JsonObject(String baseName,
Locale locale)
Construct a JSONObject from a ResourceBundle.
|
| Modifier and Type | Class and Description |
|---|---|
class |
JsonPointerException
The JsonPointerException is thrown by
JSONPointer if an error occurs
during evaluating a pointer. |
| Modifier and Type | Method and Description |
|---|---|
JsonException |
JsonTokener.syntaxError(String message)
Make a JsonException to signal a syntax error.
|
JsonException |
JsonTokener.syntaxError(String message,
Throwable causedBy)
Make a JsonException to signal a syntax error.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JsonTokener.back()
Back up one character.
|
JsonWriter |
JsonWriter.beginArray()
Begin appending a new beginArray.
|
JsonWriter |
JsonWriter.beginObject()
Begin appending a new beginObject.
|
JsonWriter |
JsonWriter.endArray()
End an beginArray.
|
JsonWriter |
JsonWriter.endObject()
End an beginObject.
|
JsonWriter |
JsonWriter.key(String string)
Append a key.
|
boolean |
JsonTokener.more()
Determine if the source string still contains characters that next()
can consume.
|
char |
JsonTokener.next()
Get the next character in the source string.
|
char |
JsonTokener.next(char c)
Consume the next character, and check that it matches a specified
character.
|
String |
JsonTokener.next(int n)
Get the next n characters.
|
char |
JsonTokener.nextClean()
Get the next char in the string, skipping whitespace.
|
String |
JsonTokener.nextString(char quote)
Return the characters up to the next close quote character.
|
String |
JsonTokener.nextTo(char delimiter)
Get the text up but not including the specified character or the
end of line, whichever comes first.
|
String |
JsonTokener.nextTo(String delimiters)
Get the text up but not including one of the specified delimiter
characters or the end of line, whichever comes first.
|
Object |
JsonTokener.nextValue()
Get the next value.
|
char |
JsonTokener.skipTo(char to)
Skip characters until the next character is the requested character.
|
JsonWriter |
JsonWriter.value(boolean b)
Append either the value
true or the value false. |
JsonWriter |
JsonWriter.value(double d)
Append a double value.
|
JsonWriter |
JsonWriter.value(long l)
Append a long value.
|
JsonWriter |
JsonWriter.value(Object object)
Append an beginObject value.
|
static String |
JsonWriter.valueToString(Object value)
Make a JSON text of an Object value.
|
Copyright © 2018 Terra Software Informatics LLC.. All rights reserved.