public class JSONUtils extends Object
Constructor and Description |
---|
JSONUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
toObject(Class<T> clazz,
String source)
Load a JSON string into an instantiated object.
|
public static <T> T toObject(Class<T> clazz, String source) throws JSONException
clazz
- Class of the object which the JSON string would be loaded into.source
- JSON string.JSONException
Copyright © 2016. All rights reserved.