-
Subclasses of JsonValue in org.jmxtrans.agent.util.json
| Modifier and Type |
Class |
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.
|
Methods in org.jmxtrans.agent.util.json that return JsonValue
| Modifier and Type |
Method |
Description |
JsonValue |
JsonArray.get(int index) |
Returns the value of the element at the specified position in this array.
|
JsonValue |
JsonObject.get(java.lang.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(java.io.Reader reader) |
Reads the entire input from the given reader and parses it as JSON.
|
static JsonValue |
Json.parse(java.lang.String string) |
Parses the given input string as JSON.
|
static JsonValue |
JsonValue.readFrom(java.io.Reader reader) |
Deprecated.
|
static JsonValue |
JsonValue.readFrom(java.lang.String text) |
Deprecated.
|
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(java.lang.String string) |
Returns a JsonValue instance that represents the given string.
|
static JsonValue |
JsonValue.valueOf(boolean value) |
Deprecated.
|
static JsonValue |
JsonValue.valueOf(double value) |
Deprecated.
|
static JsonValue |
JsonValue.valueOf(float value) |
Deprecated.
|
static JsonValue |
JsonValue.valueOf(int value) |
Deprecated.
|
static JsonValue |
JsonValue.valueOf(long value) |
Deprecated.
|
static JsonValue |
JsonValue.valueOf(java.lang.String string) |
Deprecated.
|
Methods in org.jmxtrans.agent.util.json that return types with arguments of type JsonValue
| Modifier and Type |
Method |
Description |
java.util.Iterator<JsonValue> |
JsonArray.iterator() |
Returns an iterator over the values of this array in document order.
|
java.util.List<JsonValue> |
JsonArray.values() |
Returns a list of the values in this array in document order.
|
Methods in org.jmxtrans.agent.util.json with parameters of type JsonValue
| Modifier and Type |
Method |
Description |
JsonArray |
JsonArray.add(JsonValue value) |
Appends the specified JSON value to the end of this array.
|
JsonObject |
JsonObject.add(java.lang.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(java.lang.String name,
JsonValue value) |
Sets the value of the member with the specified name to the specified JSON value.
|
Json.FALSEinstead