public final class JsonObject extends JsonValue
| Constructor and Description |
|---|
JsonObject()
Creates a new empty
JsonObject. |
JsonObject(Map<String,JsonValue> fields)
Creates a new
JsonObject with provided fields. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String key,
JsonValue value)
Adds a new field into json object.
|
boolean |
equals(Object obj) |
JsonValue |
getField(String fieldName)
Gets particular json object field.
|
Map<String,JsonValue> |
getFields()
Gets a copy of the json object fields.
|
int |
hashCode() |
public JsonObject()
JsonObject.public JsonObject(Map<String,JsonValue> fields)
JsonObject with provided fields.fields - fields to put into json objectpublic Map<String,JsonValue> getFields()
public void add(String key, JsonValue value)
key - a key to add into json object fieldsvalue - a value to add into json object fields under the keyCopyright © 1998–2026 Apryse Group NV. All rights reserved.