T
- the type of object to be marshalled to json.public class JsonMarshaller<T> extends java.lang.Object implements DynamoDBMarshaller<T>
Constructor and Description |
---|
JsonMarshaller() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
marshall(T obj)
Turns an object of type T into its String representation.
|
T |
unmarshall(java.lang.Class<T> clazz,
java.lang.String json)
Turns a String representation of an object of type T into an object.
|
public java.lang.String marshall(T obj)
DynamoDBMarshaller
marshall
in interface DynamoDBMarshaller<T>
obj
- the object of type Tpublic T unmarshall(java.lang.Class<T> clazz, java.lang.String json)
DynamoDBMarshaller
unmarshall
in interface DynamoDBMarshaller<T>
clazz
- the class of type T to unmarshall.json
- the string to unmarshall from.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.