| 程序包 | 说明 |
|---|---|
| blade.kit.json |
| 限定符和类型 | 方法和说明 |
|---|---|
JsonObject |
JsonObject.add(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.add(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.add(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.add(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.add(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.add(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.add(String name,
Object value) |
JsonObject |
JsonObject.add(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 |
JsonValue.asObject()
Returns this JSON value as
JsonObject, assuming that this value represents a JSON
object. |
JsonObject |
JsonObject.asObject() |
JsonObject |
JsonObject.merge(JsonObject object)
Copies all members of the specified object into this object.
|
static JsonObject |
Json.object()
Creates a new empty JsonObject.
|
static <K,V> JsonObject |
Json.parse(Map<K,V> map) |
static JsonObject |
Json.parse(Object bean)
对象转换为JsonValue对象
|
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 |
JsonObject.unmodifiableObject(JsonObject object)
Returns an unmodifiable JsonObject for the specified one.
|
| 限定符和类型 | 方法和说明 |
|---|---|
JsonObject |
JsonObject.merge(JsonObject object)
Copies all members of the specified object into this object.
|
static <V> Map<String,V> |
Json.parseToMap(JsonObject jo) |
static <V> Map<String,V> |
JSONKit.toMap(JsonObject jsonObject) |
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 © 2015. All rights reserved.