Package com.itextpdf.commons.json
Class JsonObject
java.lang.Object
com.itextpdf.commons.json.JsonValue
com.itextpdf.commons.json.JsonObject
Class representing json object value.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new emptyJsonObject.JsonObject(Map<String, JsonValue> fields) Creates a newJsonObjectwith provided fields. -
Method Summary
-
Constructor Details
-
JsonObject
public JsonObject()Creates a new emptyJsonObject. -
JsonObject
Creates a newJsonObjectwith provided fields.- Parameters:
-
fields- fields to put into json object
-
-
Method Details
-
getFields
Gets a copy of the json object fields.- Returns:
- json object fields
-
add
Adds a new field into json object.- Parameters:
-
key- a key to add into json object fields -
value- a value to add into json object fields under thekey
-
equals
-
hashCode
public int hashCode()
-