public interface JSONObjects
| Modifier and Type | Method and Description |
|---|---|
JSONArray.Builder |
array()
Create a new
JSONArray.Builder instance |
JSONObject.Builder |
object()
Create a new
JSONObject.Builder instance |
JSONNode |
read(CharSequence text)
Parse a character stream into a
JSONObject or JSONArray
instance |
JSONNode |
read(InputStream stream)
Parse a byte stream into a
JSONObject or JSONArray instance |
JSONNode |
read(Iterator<JSONToken> stream)
Parse a JSONToken stream into a
JSONObject or JSONArray
instance |
JSONNode |
read(Reader stream)
Parse a character stream into a
JSONObject or JSONArray
instance |
void |
write(Appendable stream,
JSONNode node)
Serialize a JSON Object graph to it's textual representation
|
void |
write(Appendable stream,
Object objectGraph)
Serialize any Java Object graph to it's textual representation.
|
void |
write(JSONWriter stream,
JSONNode node)
Serialize a JSON Object graph to a
JSONWriter stream |
void |
write(JSONWriter stream,
Object objectGraph)
Serialize any Java Object graph to a
JSONWriter stream. |
void |
write(OutputStream stream,
JSONNode node)
Serialize a JSON Object graph to it's textual representation
|
void |
write(OutputStream stream,
Object objectGraph)
Serialize any Java Object graph to it's textual representation.
|
JSONArray.Builder array()
JSONArray.Builder instanceJSONArray.Builder instanceJSONObject.Builder object()
JSONObject.Builder instanceJSONObject.Builder instanceJSONNode read(CharSequence text)
JSONObject or JSONArray
instancetext - The JSON textual representation to be parsedJSONObject or JSONArray instanceJSONNode read(InputStream stream) throws JSONIOException
JSONObject or JSONArray instancestream - The JSON textual representation to be parsedJSONObject or JSONArray instanceJSONIOException - if an IOException occurs reading from the streamJSONNode read(Iterator<JSONToken> stream) throws JSONIOException
JSONObject or JSONArray
instancestream - The JSONToken stream to be parsedJSONObject or JSONArray instanceJSONIOException - if an IOException occurs reading from the streamJSONNode read(Reader stream) throws JSONIOException
JSONObject or JSONArray
instancestream - JSONObject or JSONArray instanceJSONIOExceptionvoid write(Appendable stream, JSONNode node) throws JSONIOException
stream - The character stream to serialize tonode - The JSONObject or JSONNode at the root of the
object graphJSONIOException - if an IO error occursvoid write(Appendable stream, Object objectGraph) throws JSONIOException
Serialize any Java Object graph to it's textual representation.
stream - The character stream to serialize toobjectGraph - The root node in the object graphJSONIOException - if an IO error occursvoid write(JSONWriter stream, JSONNode node) throws JSONIOException
JSONWriter streamstream - The JSONWriter stream to serialize tonode - The JSONObject or JSONNode at the root of the
object graphJSONIOException - if an IO error occursvoid write(JSONWriter stream, Object objectGraph) throws JSONIOException
Serialize any Java Object graph to a JSONWriter stream.
stream - The JSONWriter stream to serialize toobjectGraph - The root node in the object graphJSONIOException - if an IO error occursvoid write(OutputStream stream, JSONNode node) throws JSONIOException
stream - The byte stream to serialize tonode - The JSONObject or JSONNode at the root of the
object graphJSONIOException - if an IO error occursvoid write(OutputStream stream, Object objectGraph) throws JSONIOException
Serialize any Java Object graph to it's textual representation.
stream - The byte stream to serialize toobjectGraph - The root node in the object graphJSONIOException - if an IO error occursOracle REST Data Services Plugin API version: 3.0.0.65.09.35 Copyright © 2015 Oracle Corp. All Rights Reserved.