| 程序包 | 说明 |
|---|---|
| com.blade.kit.json |
| 限定符和类型 | 方法和说明 |
|---|---|
JSONObject |
JSONValue.asJSONObject()
Returns this JSON value as
JSONObject, assuming that this value
represents a JSON object. |
JSONObject |
JSONObject.asJSONObject() |
static JSONObject |
JSON.create()
Creates a new empty JsonObject.
|
static JSONObject |
JSONHelper.mapAsJsonObject(Map<?,?> map) |
JSONObject |
JSONObject.merge(JSONObject object)
Copies all members of the specified object into this object.
|
static JSONObject |
JSONKit.parseObject(String json) |
JSONObject |
JSONObject.put(String name,
boolean value)
Appends a new member to the end of this object, with the specified name
and the JSON representation of the specified
boolean value. |
JSONObject |
JSONObject.put(String name,
double value)
Appends a new member to the end of this object, with the specified name
and the JSON representation of the specified
double value. |
JSONObject |
JSONObject.put(String name,
float value)
Appends a new member to the end of this object, with the specified name
and the JSON representation of the specified
float value. |
JSONObject |
JSONObject.put(String name,
int value)
Appends a new member to the end of this object, with the specified name
and the JSON representation of the specified
int value. |
JSONObject |
JSONObject.put(String name,
JSONValue value)
Appends a new member to the end of this object, with the specified name
and the specified JSON value.
|
JSONObject |
JSONObject.put(String name,
long value)
Appends a new member to the end of this object, with the specified name
and the JSON representation of the specified
long value. |
JSONObject |
JSONObject.put(String name,
Object value) |
JSONObject |
JSONObject.put(String name,
String value)
Appends a new member to the end of this object, with the specified name
and the JSON representation of the specified string.
|
JSONObject |
JSONObject.remove(String name)
Removes a member with the specified name from this object.
|
JSONObject |
JSONObject.set(String name,
boolean value)
Sets the value of the member with the specified name to the JSON
representation of the specified
boolean value. |
JSONObject |
JSONObject.set(String name,
double value)
Sets the value of the member with the specified name to the JSON
representation of the specified
double value. |
JSONObject |
JSONObject.set(String name,
float value)
Sets the value of the member with the specified name to the JSON
representation of the specified
float value. |
JSONObject |
JSONObject.set(String name,
int value)
Sets the value of the member with the specified name to the JSON
representation of the specified
int value. |
JSONObject |
JSONObject.set(String name,
JSONValue value)
Sets the value of the member with the specified name to the specified
JSON value.
|
JSONObject |
JSONObject.set(String name,
long value)
Sets the value of the member with the specified name to the JSON
representation of the specified
long value. |
JSONObject |
JSONObject.set(String name,
String value)
Sets the value of the member with the specified name to the JSON
representation of the specified string.
|
static JSONObject |
JSONHelper.toJSONObject(Object bean) |
static JSONObject |
JSONObject.unmodifiableObject(JSONObject object)
Returns an unmodifiable JsonObject for the specified one.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Map<String,Object> |
JSONHelper.jsonObjectAsMap(JSONObject object) |
JSONObject |
JSONObject.merge(JSONObject object)
Copies all members of the specified object into this object.
|
static JSONObject |
JSONObject.unmodifiableObject(JSONObject object)
Returns an unmodifiable JsonObject for the specified one.
|
| 构造器和说明 |
|---|
JSONObject(JSONObject object)
Creates a new JsonObject, initialized with the contents of the specified
JSON object.
|
Copyright © 2016. All rights reserved.