| 程序包 | 说明 |
|---|---|
| com.dianping.cat.util.json |
| 限定符和类型 | 方法和说明 |
|---|---|
JsonObject |
JsonObject.accumulate(String key,
Object value)
Accumulate values under a key.
|
JsonObject |
JsonArray.getJSONObject(int index)
Get the JSONObject associated with an index.
|
JsonObject |
JsonObject.getJSONObject(String key)
Get the JSONObject value associated with a key.
|
JsonObject |
JsonArray.optJSONObject(int index)
Get the optional JSONObject associated with an index.
|
JsonObject |
JsonObject.optJSONObject(String key)
Get an optional JSONObject associated with 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,
Object value)
Put a key/value pair in the JSONObject.
|
JsonObject |
JsonObject.putOpt(String key,
Object value)
Put a key/value pair in the JSONObject, but only if the value is non-null.
|
JsonObject |
JsonArray.toJSONObject(JsonArray names)
Produce a JSONObject by combining a JSONArray of names with the values
of this JSONArray.
|
| 构造器和说明 |
|---|
JsonObject(JsonObject jo,
String[] sa)
Construct a JSONObject from a subset of another JSONObject.
|
Copyright © 2022. All rights reserved.