| 程序包 | 说明 |
|---|---|
| com.xiaoleilu.hutool.json |
| 限定符和类型 | 方法和说明 |
|---|---|
JSONArray |
JSONArray.getJSONArray(int index)
Get the optional JSONArray associated with an index.
|
JSONArray |
JSONObject.getJSONArray(String key)
获得JSONArray对象
|
JSONArray |
JSONObject.names()
Produce a JSONArray containing the names of the elements of this JSONObject.
|
static JSONArray |
JSONUtil.parseArray(String jsonStr)
JSON字符串转JSONArray
|
JSONArray |
JSONArray.put(boolean value)
Append a boolean value.
|
JSONArray |
JSONArray.put(Collection<?> value)
Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.
|
JSONArray |
JSONArray.put(double value)
Append a double value.
|
JSONArray |
JSONArray.put(int value)
Append an int value.
|
JSONArray |
JSONArray.put(int index,
boolean value)
Put or replace a boolean value in the JSONArray.
|
JSONArray |
JSONArray.put(int index,
Collection<?> value)
Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.
|
JSONArray |
JSONArray.put(int index,
double value)
Put or replace a double value.
|
JSONArray |
JSONArray.put(int index,
int value)
Put or replace an int value.
|
JSONArray |
JSONArray.put(int index,
long value)
Put or replace a long value.
|
JSONArray |
JSONArray.put(int index,
Map<?,?> value)
Put a value in the JSONArray, where the value will be a JSONObject that is produced from a Map.
|
JSONArray |
JSONArray.put(int index,
Object value)
Put or replace an object value in the JSONArray.
|
JSONArray |
JSONArray.put(long value)
Append an long value.
|
JSONArray |
JSONArray.put(Map<?,?> value)
Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.
|
JSONArray |
JSONArray.put(Object value)
Append an object value.
|
JSONArray |
JSONObject.toJSONArray(JSONArray names)
Produce a JSONArray containing the values of the members of this JSONObject.
|
| 限定符和类型 | 方法和说明 |
|---|---|
JSONArray |
JSONObject.toJSONArray(JSONArray names)
Produce a JSONArray containing the values of the members of this JSONObject.
|
JSONObject |
JSONArray.toJSONObject(JSONArray names)
Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.
|
static String |
JSONUtil.toJsonPrettyStr(JSONArray jsonArray)
转为格式化后的JSON字符串
|
static String |
JSONUtil.toJsonStr(JSONArray jsonArray)
转为JSON字符串
|
Copyright © 2016. All rights reserved.