public final class Jsons
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
toObject(java.lang.Class<T> clazz,
java.lang.String source)
Load a JSON string into an instantiated object.
|
public static <T> T toObject(java.lang.Class<T> clazz,
java.lang.String source)
throws JsonException
clazz - Class of the object which the JSON string would be loaded into.source - JSON string.JsonException