public class Serializer extends Object
| Constructor and Description |
|---|
Serializer(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
Object |
jsonBytesToObject(byte[] json,
Class<?> c) |
String |
objectToJson(Object object) |
public Serializer(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public String objectToJson(Object object) throws JsonException
JsonExceptionpublic Object jsonBytesToObject(byte[] json, Class<?> c) throws JsonException
JsonExceptionCopyright © 2017. All rights reserved.