| Package | Description |
|---|---|
| com.itextpdf.commons.json |
| Modifier and Type | Class and Description |
|---|---|
class |
JsonArray
Class representing json array value.
|
class |
JsonBoolean
Class representing json boolean value.
|
class |
JsonNull
Class representing json null value.
|
class |
JsonNumber
Class representing json number value.
|
class |
JsonObject
Class representing json object value.
|
class |
JsonString
Class representing json string value.
|
| Modifier and Type | Method and Description |
|---|---|
static JsonValue |
JsonValue.fromJson(String json)
Parses string and creates
JsonValue out of it. |
JsonValue |
JsonObject.getField(String fieldName)
Gets particular json object field.
|
JsonValue |
IJsonSerializable.toJson()
Serializes object to JSON AST.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,JsonValue> |
JsonObject.getFields()
Gets a copy of the json object fields.
|
List<JsonValue> |
JsonArray.getValues()
Gets a copy of json array values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JsonArray.add(JsonValue value)
Adds a new value into json array.
|
void |
JsonObject.add(String key,
JsonValue value)
Adds a new field into json object.
|
| Constructor and Description |
|---|
JsonArray(List<JsonValue> values)
Creates a new
JsonArray with provided values. |
JsonObject(Map<String,JsonValue> fields)
Creates a new
JsonObject with provided fields. |
Copyright © 1998–2026 Apryse Group NV. All rights reserved.