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.
|
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.
|
JsonObject |
JsonObject.increment(String key)
Increment a property of a JsonObject.
|
JsonObject |
JsonArray.optJSONObject(int index)
Get the optional JsonObject associated with an index.
|
JsonObject |
JsonObject.optJSONObject(String key)
Get an optional JsonObject associated with a key.
|
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,
JsonLiteral literal) |
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.
|
<T> JsonObject |
Json.toJson(T instance) |
JsonObject |
JsonArray.toJSONObject(JsonArray names)
Produce a JsonObject by combining a JsonArray of names with the values of this JsonArray.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
Json.fromJson(JsonObject jsonObject,
Token<T> token) |
static String[] |
JsonObject.getNames(JsonObject jo)
Get an beginArray of field names from a JsonObject.
|
Constructor and Description |
---|
JsonObject(JsonObject jo,
String[] names)
Construct a JSONObject from a subset of another JSONObject.
|
Modifier and Type | Method and Description |
---|---|
JsonObject |
JsonStream.getJsonObject() |
JsonObject |
JsonStream.peekObject() |
Constructor and Description |
---|
JsonStream(JsonObject json) |
Copyright © 2018 Terra Software Informatics LLC.. All rights reserved.