Modifier and Type | Method and Description |
---|---|
<T> JsonElement<?> |
JsonGenerationContext.handle(T object)
Entry point for the transformation of an object to a
JsonElement . |
Modifier and Type | Method and Description |
---|---|
JsonElement<?> |
JsonHandler.handle(JsonGenerationContext context,
T value)
This method transforms the given value to a valid
JsonElement . |
Modifier and Type | Interface and Description |
---|---|
interface |
JsonArray
The interface for json arrays.
|
interface |
JsonObject
The root interface for json objects.
|
interface |
JsonPair
An interface for representing a json key/value pair containing of a key and a
JsonElement . |
Modifier and Type | Method and Description |
---|---|
JsonElement<?> |
JsonArray.get(int index)
Returns the
element at the specified position in this array. |
JsonElement<?> |
JsonObject.get(String key)
Get the value with the specified key.
|
JsonElement<?> |
JsonPair.getValue()
This method returns the current value of the pair.
|
JsonElement<?> |
JsonObject.resolve(String path)
Get the value for the specified path.
|
Modifier and Type | Method and Description |
---|---|
default Stream<JsonElement<?>> |
JsonArray.stream()
This method transforms the current values list to a stream and returns it.
|
Collection<JsonElement<?>> |
JsonArray.values()
Returns the current
values in a new collection . |
Modifier and Type | Method and Description |
---|---|
JsonArray |
JsonArray.add(JsonElement<?>... values)
This method adds one or more elements to the list.
|
static JsonPair |
JsonPair.of(String key,
JsonElement<?> value)
|
JsonObject |
JsonObject.put(String key,
JsonElement<?> value)
This method adds one pair to the object.
|
JsonArray |
JsonArray.remove(JsonElement<?>... values)
This method removes the given {link JsonElement elements}.
|
Modifier and Type | Method and Description |
---|---|
JsonArray |
JsonArray.add(Collection<? extends JsonElement<?>> values)
This method adds a collection of
JsonElement instances to the list. |
JsonArray |
JsonArray.remove(Collection<? extends JsonElement<?>> values)
This method removes a collection of
JsonElement instances from the list. |
Modifier and Type | Interface and Description |
---|---|
interface |
JsonBooleanValue
A value class for representing a boolean value in JSON.
|
interface |
JsonDateValue
This class represents a JSON value that is a date.
|
interface |
JsonNullValue
A value class representing a null value in JSON.
|
interface |
JsonNumberValue
A value class for representing a numeric value in JSON.
|
interface |
JsonStringValue
A value class for representing a String value in JSON.
|
Modifier and Type | Method and Description |
---|---|
static JsonElement<?> |
JsonStringValue.ofNullable(Object value)
Returns a new
json element wrapping the given value , or
JsonNullValue.NULL if the provided value is null . |
Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210