public interface JsonSerializer extends JsonSerializer
Modifier and Type | Method and Description |
---|---|
<T> T |
deserializeTree(JsonNode jsonNode,
TypeReference<T> typeReference)
Reads a JSON tree into its object representation.
|
<T> Mono<T> |
deserializeTreeAsync(JsonNode jsonNode,
TypeReference<T> typeReference)
Reads a JSON tree into its object representation.
|
void |
serializeTree(OutputStream stream,
JsonNode jsonNode)
Writes a JSON tree into a stream.
|
Mono<Void> |
serializeTreeAsync(OutputStream stream,
JsonNode jsonNode)
Writes a JSON tree into a stream.
|
JsonNode |
toTree(InputStream stream)
Reads a JSON stream into its JSON tree representation.
|
JsonNode |
toTree(Object value)
Writes an object into its JSON tree representation.
|
Mono<JsonNode> |
toTreeAsync(InputStream stream)
Reads a JSON stream into its JSON tree representation.
|
Mono<JsonNode> |
toTreeAsync(Object value)
Writes an object into its JSON tree representation.
|
deserialize, deserializeAsync, deserializeFromBytes, deserializeFromBytesAsync, serialize, serializeAsync, serializeToBytes, serializeToBytesAsync
<T> T deserializeTree(JsonNode jsonNode, TypeReference<T> typeReference)
T
- Type of the object.jsonNode
- The JSON tree.typeReference
- TypeReference
representing the object.<T> Mono<T> deserializeTreeAsync(JsonNode jsonNode, TypeReference<T> typeReference)
T
- Type of the object.jsonNode
- The JSON tree.typeReference
- TypeReference
representing the object.void serializeTree(OutputStream stream, JsonNode jsonNode)
stream
- OutputStream
where the JSON tree will be written.jsonNode
- The JSON tree.Mono<Void> serializeTreeAsync(OutputStream stream, JsonNode jsonNode)
stream
- OutputStream
where the JSON tree will be written.jsonNode
- The JSON tree.JsonNode toTree(InputStream stream)
stream
- JSON stream.Mono<JsonNode> toTreeAsync(InputStream stream)
stream
- JSON stream.JsonNode toTree(Object value)
value
- The object.Copyright © 2021 Microsoft Corporation. All rights reserved.