Package | Description |
---|---|
com.azure.core.experimental.serializer |
Package containing experimental serializer interfaces.
|
Modifier and Type | Interface and Description |
---|---|
interface |
JsonArray
Interface that represents a JSON array.
|
interface |
JsonNull
Interface that represents a JSON null.
|
interface |
JsonObject
Interface that represents a JSON object.
|
interface |
JsonPrimitive
Interface that represents a JSON value.
|
Modifier and Type | Method and Description |
---|---|
JsonNode |
JsonArray.get(int index)
Gets the
JsonNode at the given index of the array. |
JsonNode |
JsonObject.get(String name)
Gets the
JsonNode field with the specified name in the object. |
JsonNode |
JsonArray.remove(int index)
Removes the
JsonNode at the specified index of the array. |
JsonNode |
JsonObject.remove(String name)
Removes the
JsonNode with the specified name from the object. |
JsonNode |
JsonArray.set(int index,
JsonNode jsonNode)
Replaces the
JsonNode at the specified index with a new node. |
JsonNode |
JsonObject.set(String name,
JsonNode jsonNode)
Sets the
JsonNode field with the specified name with a new node value. |
JsonNode |
JsonSerializer.toTree(InputStream stream)
Reads a JSON stream into its JSON tree representation.
|
JsonNode |
JsonSerializer.toTree(Object value)
Writes an object into its JSON tree representation.
|
Modifier and Type | Method and Description |
---|---|
JsonArray |
JsonArray.add(JsonNode jsonNode)
Adds a
JsonNode to the end of this array. |
<T> T |
JsonSerializer.deserializeTree(JsonNode jsonNode,
TypeReference<T> typeReference)
Reads a JSON tree into its object representation.
|
<T> Mono<T> |
JsonSerializer.deserializeTreeAsync(JsonNode jsonNode,
TypeReference<T> typeReference)
Reads a JSON tree into its object representation.
|
JsonObject |
JsonObject.put(String name,
JsonNode jsonNode)
Puts a
JsonNode field with the specified name into the object. |
void |
JsonSerializer.serializeTree(OutputStream stream,
JsonNode jsonNode)
Writes a JSON tree into a stream.
|
Mono<Void> |
JsonSerializer.serializeTreeAsync(OutputStream stream,
JsonNode jsonNode)
Writes a JSON tree into a stream.
|
JsonNode |
JsonArray.set(int index,
JsonNode jsonNode)
Replaces the
JsonNode at the specified index with a new node. |
JsonNode |
JsonObject.set(String name,
JsonNode jsonNode)
Sets the
JsonNode field with the specified name with a new node value. |
Copyright © 2021 Microsoft Corporation. All rights reserved.