Helper class to convert to/from custom POJO classes and plain Java types.
| static <T> T |
convertToCustomClass(Object object, Class<T> clazz)
Converts a standard library Java representation of JSON data to an object of the provided
class.
|
| static <T> T |
convertToCustomClass(Object object, GenericTypeIndicator<T> typeIndicator)
Converts a standard library Java representation of JSON data to an object of the class provided
through the GenericTypeIndicator
|
| static Object |
convertToPlainJavaTypes(Object object)
Converts a Java representation of JSON data to standard library Java data types: Map, Array,
String, Double, Integer and Boolean.
|
| static Map<String, Object> |
Converts a standard library Java representation of JSON data to an object of the provided class.
| object | The representation of the JSON data |
|---|---|
| clazz | The class of the object to convert to |
Converts a standard library Java representation of JSON data to an object of the class provided through the GenericTypeIndicator
| object | The representation of the JSON data |
|---|---|
| typeIndicator | The indicator providing class of the object to convert to |
Converts a Java representation of JSON data to standard library Java data types: Map, Array, String, Double, Integer and Boolean. POJOs are converted to Java Maps.
| object | The representation of the JSON data |
|---|