public class JsonSerializer extends Object implements Serializer
| Constructor and Description |
|---|
JsonSerializer(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
deserialize(String arg,
Class<T> targetClass) |
String |
serialize(Object object) |
public JsonSerializer(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public String serialize(Object object) throws IOException
serialize in interface SerializerIOExceptionpublic <T> T deserialize(String arg, Class<T> targetClass) throws ParseException, IOException
deserialize in interface SerializerParseExceptionIOExceptionCopyright © 2018. All rights reserved.