public class DefaultGsonObjectMapper extends java.lang.Object implements JsonObjectMapper
Gson configuration for serialization and deserialization JSON
operations.
When none is explicitly set, this will be set.
| Constructor and Description |
|---|
DefaultGsonObjectMapper() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
fromJson(java.lang.String value,
java.lang.Class<T> valueType)
Perform deserialization from JSON format string to the given type object as argument.
|
java.lang.String |
toJson(java.lang.Object value)
Perform serialization from object to JSON format string.
|
public <T> T fromJson(java.lang.String value,
java.lang.Class<T> valueType)
JsonObjectMapperfromJson in interface JsonObjectMapperT - the type object to convertvalue - the JSON formatvalueType - the object type to convertpublic java.lang.String toJson(java.lang.Object value)
JsonObjectMappertoJson in interface JsonObjectMappervalue - the object to convertCopyright © 2025. All rights reserved.