public class JsonUtil extends Object
| Constructor and Description |
|---|
JsonUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
readJson(InputStream jsonStream,
Class<T> clazz)
Read json.
|
static <T> T |
readJson(String json,
Class<T> clazz)
Read json.
|
public static final <T> T readJson(String json, Class<T> clazz)
T - the generic typejson - the jsonclazz - the clazzpublic static final <T> T readJson(InputStream jsonStream, Class<T> clazz)
T - the generic typejsonStream - the json streamclazz - the clazzCopyright © 2016. All Rights Reserved.