public interface JsonSerializer extends ObjectSerializer
| Modifier and Type | Method and Description |
|---|---|
<T> T |
deserialize(InputStream stream,
TypeReference<T> typeReference)
Reads a JSON stream into its object representation.
|
<T> Mono<T> |
deserializeAsync(InputStream stream,
TypeReference<T> typeReference)
Reads a JSON stream into its object representation.
|
void |
serialize(OutputStream stream,
Object value)
Writes an object's JSON into a stream..
|
Mono<Void> |
serializeAsync(OutputStream stream,
Object value)
Writes an object's JSON into a stream..
|
<T> T deserialize(InputStream stream, TypeReference<T> typeReference)
deserialize in interface ObjectSerializerT - Type of the object.stream - JSON stream.typeReference - TypeReference representing the object.<T> Mono<T> deserializeAsync(InputStream stream, TypeReference<T> typeReference)
deserializeAsync in interface ObjectSerializerT - Type of the object.stream - JSON stream.typeReference - TypeReference representing the object.void serialize(OutputStream stream, Object value)
serialize in interface ObjectSerializerstream - OutputStream where the object's JSON will be written.value - The object.Mono<Void> serializeAsync(OutputStream stream, Object value)
serializeAsync in interface ObjectSerializerstream - OutputStream where the object's JSON will be written.value - The object.Copyright © 2020 Microsoft Corporation. All rights reserved.