public class JsonUtil extends Object
| Constructor and Description |
|---|
JsonUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
inputStream2Json(InputStream is) |
static boolean |
isValidJson(String json) |
static <T> T |
json2Object(InputStream is,
Class<T> classOfT) |
static <T> T |
json2Object(InputStream is,
Type typeOfT) |
static <T> T |
json2Object(String json,
Class<T> classOfT) |
static <T> T |
json2Object(String json,
Type typeOfT) |
static String |
object2Json(Object obj) |
public static String inputStream2Json(InputStream is)
public static <T> T json2Object(InputStream is, Class<T> classOfT)
public static <T> T json2Object(InputStream is, Type typeOfT)
public static boolean isValidJson(String json)
Copyright © 2018. All rights reserved.