public class JSON extends Object
Constructor and Description |
---|
JSON() |
Modifier and Type | Method and Description |
---|---|
static Object |
parse(String text) |
static JSONArray |
parseArray(String text) |
static <T> List<T> |
parseArray(String text,
Class<T> clazz) |
static JSONObject |
parseObject(String text) |
static <T> T |
parseObject(String text,
Class<T> clazz) |
static <T> T |
parseObject(String text,
TypeReference<T> type) |
static <T> T |
toJavaObject(JSONObject json,
Class<T> clazz) |
static String |
toJSONString(Object object) |
public static <T> T parseObject(String text, TypeReference<T> type)
public static JSONObject parseObject(String text)
public static <T> T toJavaObject(JSONObject json, Class<T> clazz)
Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.