| Package | Description |
|---|---|
| org.json | |
| org.oiue.tools.json |
| Modifier and Type | Method and Description |
|---|---|
JSONObject |
JSONObject.append(String key,
Object value)
Append values to the array under a key.
|
JSONObject |
JSONObject.put(String key,
boolean value)
Put a key/boolean pair in the JSONObject.
|
JSONObject |
JSONObject.put(String key,
double value)
Put a key/double pair in the JSONObject.
|
JSONObject |
JSONObject.put(String key,
int value)
Put a key/int pair in the JSONObject.
|
JSONObject |
JSONObject.put(String key,
long value)
Put a key/long pair in the JSONObject.
|
JSONObject |
JSONObject.put(String key,
Map value)
Put a key/value pair in the JSONObject, where the value will be a
JSONObject which is produced from a Map.
|
JSONObject |
JSONObject.put(String key,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
static String[] |
JSONObject.getNames(JSONObject json) |
| Modifier and Type | Method and Description |
|---|---|
static Map<?,Object> |
JSONUtil.parserToMap(JSONObject json)
将JSONObject对象转换成map
|
static Map<String,Object> |
JSONUtil.toMap(JSONObject json) |
Copyright © 2017. All rights reserved.