public class Eserial
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
fromJson(java.lang.Class<T> clazz,
java.lang.String json)
Builds an object of the given type from the given JSON formatted String.
|
static java.lang.String |
toJson(java.lang.Object object)
Converts an object to JSON format.
|
public static java.lang.String toJson(java.lang.Object object)
EserialAnnotations to customize the output.object - an arbitrary objectEserialException - if any issues occur during the mapping or serialization processpublic static <T> T fromJson(java.lang.Class<T> clazz,
java.lang.String json)
EserialAnnotations to customize the interpretation of the input.T - the type of the object to buildclazz - the type class of the object to buildjson - a JSON formatted StringjsonEserialException - if any issues occur during the parsing or building process