public interface JsonObjectBuilder
JsonObject
instances.Modifier and Type | Method and Description |
---|---|
JsonObject |
build()
Returns a built
JsonObject . |
JsonObjectBuilder |
setValue(String name,
Object value)
Sets an attribute value on the building object.
|
JsonObjectBuilder setValue(String name, Object value)
name
- the name of the attribute. Cannot be null.value
- the value to add; must be an instance of a type defined by JsonValueType
JsonObject build()
JsonObject
.
You may continue to use the builder after this is called, but any previously added values are cleared out.
JsonObject
Copyright © Veeva Systems 2017–2021. All rights reserved.