public class QSJSONUtil extends Object
| 构造器和说明 |
|---|
QSJSONUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.json.JSONObject |
convertJSONObject(String string) |
static boolean |
jsonFillValue2Object(String jsonStr,
Object targetObj) |
static boolean |
jsonObjFillValue2Object(org.json.JSONObject o,
Object targetObj) |
static Map<String,Object> |
jsonToMap(org.json.JSONObject json) |
static void |
putJsonData(org.json.JSONArray jsonObject,
int index,
Object value) |
static void |
putJsonData(org.json.JSONObject jsonObject,
String key,
Object value) |
static void |
responceFillValue2Object(okhttp3.Response response,
Object targetObj) |
static List |
sortJSONArray(org.json.JSONArray array) |
static void |
sortJSONArray(List array,
String key) |
static void |
sortJSONArrayAscending(List array,
String key) |
static boolean |
toBoolean(org.json.JSONObject object,
String key) |
static Double |
toDouble(org.json.JSONArray labelDatas,
int i) |
static double |
toDouble(org.json.JSONObject object,
String key) |
static int |
toInt(org.json.JSONObject object,
String key) |
static org.json.JSONArray |
toJSONArray(org.json.JSONArray obj,
int i) |
static org.json.JSONArray |
toJSONArray(org.json.JSONObject obj,
String key) |
static int |
toJSONInt(org.json.JSONArray jsonArray,
int index) |
static String |
toJSONkey(org.json.JSONObject obj,
int index) |
static org.json.JSONObject |
toJSONObject(org.json.JSONArray jsonArray,
int index) |
static Object |
toJSONObject(org.json.JSONObject obj,
int index) |
static org.json.JSONObject |
toJSONObject(org.json.JSONObject jsonArray,
String key) |
static org.json.JSONObject |
toJSONObject(String str) |
static String |
toJSONString(org.json.JSONArray jsonArray,
int index) |
static List<Object> |
toList(org.json.JSONArray array) |
static List |
toList(org.json.JSONObject obj,
String key) |
static Map<String,Object> |
toMap(org.json.JSONObject object) |
static Object |
toObject(org.json.JSONArray labelDatas,
int i) |
static Object |
toObject(org.json.JSONObject labelDatas,
String key) |
static String |
toString(org.json.JSONObject object,
String key) |
public static Map<String,Object> jsonToMap(org.json.JSONObject json) throws org.json.JSONException
org.json.JSONExceptionpublic static Map<String,Object> toMap(org.json.JSONObject object) throws org.json.JSONException
org.json.JSONExceptionpublic static Double toDouble(org.json.JSONArray labelDatas, int i)
public static Object toObject(org.json.JSONArray labelDatas, int i)
public static boolean toBoolean(org.json.JSONObject object,
String key)
public static int toInt(org.json.JSONObject object,
String key)
public static double toDouble(org.json.JSONObject object,
String key)
public static org.json.JSONArray toJSONArray(org.json.JSONObject obj,
String key)
public static Object toJSONObject(org.json.JSONObject obj, int index)
public static String toJSONkey(org.json.JSONObject obj, int index)
public static org.json.JSONArray toJSONArray(org.json.JSONArray obj,
int i)
public static org.json.JSONObject toJSONObject(String str)
public static org.json.JSONObject toJSONObject(org.json.JSONObject jsonArray,
String key)
public static int toJSONInt(org.json.JSONArray jsonArray,
int index)
public static void putJsonData(org.json.JSONObject jsonObject,
String key,
Object value)
public static void putJsonData(org.json.JSONArray jsonObject,
int index,
Object value)
public static String toJSONString(org.json.JSONArray jsonArray, int index)
public static org.json.JSONObject toJSONObject(org.json.JSONArray jsonArray,
int index)
public static List sortJSONArray(org.json.JSONArray array)
public static org.json.JSONObject convertJSONObject(String string)
public static void responceFillValue2Object(okhttp3.Response response,
Object targetObj)
public static boolean jsonObjFillValue2Object(org.json.JSONObject o,
Object targetObj)
Copyright © 2018. All rights reserved.