public class JsonObject extends Object
Constructor and Description |
---|
JsonObject() |
Modifier and Type | Method and Description |
---|---|
JsonArray |
array(String key)
Creates a builder for creating json arrays.
|
org.forgerock.json.JsonValue |
build()
Takes the json object map and creates a JsonValue from it.
|
JsonObject |
put(String key,
Object value)
Adds a key value pair to the json object.
|
public JsonObject put(String key, Object value)
key
- The key.value
- The value.public JsonArray array(String key)
key
- The key the json array will be inserted with into the json object.public org.forgerock.json.JsonValue build()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.