Package | Description |
---|---|
com.hazelcast.internal.json |
Modifier and Type | Class and Description |
---|---|
class |
JsonArray
Represents a JSON array, an ordered collection of JSON values.
|
class |
JsonObject
Represents a JSON object, a set of name/value pairs, where the names are strings and the values
are JSON values.
|
Modifier and Type | Field and Description |
---|---|
static JsonValue |
JsonValue.FALSE
Deprecated.
Use
Json.FALSE instead |
static JsonValue |
Json.FALSE
Represents the JSON literal
false . |
static JsonValue |
JsonValue.NULL
Deprecated.
Use
Json.NULL instead |
static JsonValue |
Json.NULL
Represents the JSON literal
null . |
static JsonValue |
JsonValue.TRUE
Deprecated.
Use
Json.TRUE instead |
static JsonValue |
Json.TRUE
Represents the JSON literal
true . |
Modifier and Type | Method and Description |
---|---|
JsonValue |
JsonArray.get(int index)
Returns the value of the element at the specified position in this array.
|
JsonValue |
JsonObject.get(String name)
Returns the value of the member with the specified name in this object.
|
JsonValue |
JsonObject.Member.getValue()
Returns the value of this member.
|
static JsonValue |
Json.parse(Reader reader)
Reads the entire input from the given reader and parses it as JSON.
|
static JsonValue |
Json.parse(String string)
Parses the given input string as JSON.
|
static JsonValue |
JsonValue.readFrom(Reader reader)
Deprecated.
Use
Json.parse(Reader) instead |
static JsonValue |
JsonValue.readFrom(String text)
Deprecated.
Use
Json.parse(String) instead |
static JsonValue |
Json.value(boolean value)
Returns a JsonValue instance that represents the given
boolean value. |
static JsonValue |
Json.value(double value)
Returns a JsonValue instance that represents the given
double value. |
static JsonValue |
Json.value(float value)
Returns a JsonValue instance that represents the given
float value. |
static JsonValue |
Json.value(int value)
Returns a JsonValue instance that represents the given
int value. |
static JsonValue |
Json.value(long value)
Returns a JsonValue instance that represents the given
long value. |
static JsonValue |
Json.value(String string)
Returns a JsonValue instance that represents the given string.
|
static JsonValue |
JsonValue.valueOf(boolean value)
Deprecated.
Use
Json.value() instead |
static JsonValue |
JsonValue.valueOf(double value)
Deprecated.
Use
Json.value() instead |
static JsonValue |
JsonValue.valueOf(float value)
Deprecated.
Use
Json.value() instead |
static JsonValue |
JsonValue.valueOf(int value)
Deprecated.
Use
Json.value() instead |
static JsonValue |
JsonValue.valueOf(long value)
Deprecated.
Use
Json.value() instead |
static JsonValue |
JsonValue.valueOf(String string)
Deprecated.
Use
Json.value() instead |
Modifier and Type | Method and Description |
---|---|
Iterator<JsonValue> |
JsonArray.iterator()
Returns an iterator over the values of this array in document order.
|
List<JsonValue> |
JsonArray.values()
Returns a list of the values in this array in document order.
|
Modifier and Type | Method and Description |
---|---|
JsonArray |
JsonArray.add(JsonValue value)
Appends the specified JSON value to the end of this array.
|
JsonObject |
JsonObject.add(String name,
JsonValue value)
Appends a new member to the end of this object, with the specified name and the specified JSON
value.
|
JsonArray |
JsonArray.set(int index,
JsonValue value)
Replaces the element at the specified position in this array with the specified JSON value.
|
JsonObject |
JsonObject.set(String name,
JsonValue value)
Sets the value of the member with the specified name to the specified JSON value.
|
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.