public interface JsonSerializer
JsonSerializer
handles the serialization and deserialization of raw json data into java objects.Modifier and Type | Method and Description |
---|---|
<T> T |
deserialize(Class<T> target,
byte[] input)
Deserializes raw input into the target class.
|
default <T> T |
deserialize(TypeRef<T> target,
byte[] input)
Deserializes raw input into the target type.
|
byte[] |
serialize(Object input)
Serializes the given input into its encoded byte array form.
|
byte[] serialize(Object input)
input
- the object as input.<T> T deserialize(Class<T> target, byte[] input)
T
- the generic type to deserialize into.target
- the target class.input
- the raw input.default <T> T deserialize(TypeRef<T> target, byte[] input)
T
- the type to deserialize into.target
- the target type.input
- the raw input.Copyright © 2024 Couchbase, Inc.. All rights reserved.