public class JSON extends Object
构造器和说明 |
---|
JSON() |
限定符和类型 | 方法和说明 |
---|---|
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.