public static interface JSONObject.Builder extends JSONNode.Builder
JSONObject instancesJSONObjects.object()| Modifier and Type | Method and Description |
|---|---|
JSONObject.Builder |
add(JSONObject existing)
Add all the properties in the existing
JSONObject to this object. |
JSONObject.Builder |
add(String propertyName,
Boolean value)
Add a boolean JSON property
|
JSONObject.Builder |
add(String propertyName,
CharSequence value)
Add a String JSON property
|
JSONObject.Builder |
add(String propertyName,
JSONNode value)
Add a JSON property containing another JSON document
|
JSONObject.Builder |
add(String propertyName,
Number value)
Create a numeric JSON property
|
JSONObject.Builder |
add(String propertyName,
Object value)
Add a property.
|
JSONObject.Builder |
addNull(String propertyName)
Add a null property
|
JSONObject |
build()
Build the
JSONNode instance |
JSONObject.Builder |
remove(String propertyName)
Remove the named property
|
JSONObject.Builder add(JSONObject existing)
JSONObject to this object.existing - JSONObject.Builder add(String propertyName, Object value)
propertyName - The name of the propertyvalue - The value to add, must be an instance of one of the types
specified here.JSONObject.Builder add(String propertyName, Boolean value)
propertyName - property namevalue - property valueJSONObject.Builder add(String propertyName, CharSequence value)
propertyName - property namevalue - property valueJSONObject.Builder add(String propertyName, JSONNode value)
propertyName - property namevalue - property valueJSONObject.Builder add(String propertyName, Number value)
propertyName - property namevalue - property valueJSONObject.Builder addNull(String propertyName)
propertyName - property nameJSONObject.Builder remove(String propertyName)
propertyName - The name of the property to removeJSONObject build()
JSONNode.BuilderJSONNode instancebuild in interface JSONNode.BuilderJSONNode instanceOracle REST Data Services Plugin API version: 3.0.0.65.09.35 Copyright © 2015 Oracle Corp. All Rights Reserved.