|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use JSONException | |
---|---|
org.apache.wink.json4j |
Uses of JSONException in org.apache.wink.json4j |
---|
Methods in org.apache.wink.json4j that throw JSONException | |
---|---|
JSONObject |
JSONObject.append(java.lang.String key,
java.lang.Object value)
Method to append the 'value' object to the element at entry 'key'. |
java.lang.Object |
JSONObject.get(java.lang.String key)
Method to obtain the object value for a key. |
boolean |
JSONArray.getBoolean(int index)
Function to obtain a value at the specified index as a boolean. |
boolean |
JSONObject.getBoolean(java.lang.String key)
Utility method to obtain the specified key as a 'boolean' value Only boolean true, false, and the String true and false will return. |
double |
JSONArray.getDouble(int index)
Function to obtain a value at the specified index as a double. |
double |
JSONObject.getDouble(java.lang.String key)
Utility method to obtain the specified key as a 'double' value Only values of Number will be converted to double, all other types will generate an exception Provided for compatibility to other JSON models. |
java.lang.Object |
JSONArray.getIndex(int index)
Function to get a JSONArray entry at a specified index. |
int |
JSONArray.getInt(int index)
Function to obtain a value at the specified index as an int. |
int |
JSONObject.getInt(java.lang.String key)
Utility method to obtain the specified key as a 'int' value Only values of Number will be converted to integer, all other types will generate an exception. |
JSONArray |
JSONArray.getJSONArray(int index)
Utility method to obtain the specified index as a JSONArray Only values that are instances of JSONArray will be returned. |
JSONArray |
JSONObject.getJSONArray(java.lang.String key)
Utility method to obtain the specified key as a JSONArray Only values that are instances of JSONArray will be returned. |
JSONObject |
JSONArray.getJSONObject(int index)
Utility method to obtain the specified key as a JSONObject Only values that are instances of JSONObject will be returned. |
JSONObject |
JSONObject.getJSONObject(java.lang.String key)
Utility method to obtain the specified key as a JSONObject Only values that are instances of JSONObject will be returned. |
long |
JSONArray.getLong(int index)
Function to obtain a value at the specified index as a long. |
long |
JSONObject.getLong(java.lang.String key)
Utility method to obtain the specified key as a 'long' value Only values of Number will be converted to long, all other types will generate an exception. |
short |
JSONArray.getShort(int index)
Function to obtain a value at the specified index as a short. |
short |
JSONObject.getShort(java.lang.String key)
Utility method to obtain the specified key as a 'short' value Only values of Number will be converted to short, all other types will generate an exception. |
java.lang.String |
JSONArray.getString(int index)
Function to obtain a value at the specified index as a string. |
java.lang.String |
JSONObject.getString(java.lang.String key)
Utility method to obtain the specified key as a 'string' value Only values that can be easily converted to string will be returned. |
JSONArray |
JSONObject.optJSONArray(java.lang.String key)
Utility method to obtain the specified key as a JSONArray Only values that are instances of JSONArray will be returned. |
JSONArray |
JSONObject.optJSONArray(java.lang.String key,
JSONArray defaultValue)
Utility method to obtain the specified key as a JSONArray Only values that are instances of JSONArray will be returned. |
long |
JSONObject.optLong(java.lang.String key)
Utility method to obtain the specified key as a 'long' value Only values of Number will be converted to long. |
long |
JSONObject.optLong(java.lang.String key,
long defaultValue)
Utility method to obtain the specified key as a 'long' value Only values of Number will be converted to long. |
static JSONArtifact |
JSON.parse(java.io.InputStream is)
Parse an InputStream of JSON text into a JSONArtifact. |
static JSONArtifact |
JSON.parse(java.io.InputStream is,
boolean order)
Parse a InputStream of JSON text into a JSONArtifact. |
static JSONArtifact |
JSON.parse(java.io.InputStream is,
boolean order,
boolean strict)
Parse a InputStream of JSON text into a JSONArtifact. |
static JSONArtifact |
JSON.parse(java.io.Reader reader)
Parse a Reader of JSON text into a JSONArtifact. |
static JSONArtifact |
JSON.parse(java.io.Reader reader,
boolean order)
Parse a Reader of JSON text into a JSONArtifact. |
static JSONArtifact |
JSON.parse(java.io.Reader reader,
boolean order,
boolean strict)
Parse a Reader of JSON text into a JSONArtifact. |
static JSONArtifact |
JSON.parse(java.lang.String str)
Parse a string of JSON text into a JSONArtifact. |
static JSONArtifact |
JSON.parse(java.lang.String str,
boolean order)
Parse a string of JSON text into a JSONArtifact. |
static JSONArtifact |
JSON.parse(java.lang.String str,
boolean order,
boolean strict)
Parse a string of JSON text into a JSONArtifact. |
JSONArray |
JSONArray.put(java.util.Collection value)
Method to place a map into the array. |
JSONArray |
JSONArray.put(java.util.Collection value,
boolean includeSuperclass)
Method to place a map into the array. |
JSONArray |
JSONArray.put(int index,
java.util.Collection value)
Method to place a map into the array. |
JSONArray |
JSONArray.put(int index,
java.util.Collection value,
boolean includeSuperclass)
Method to place a map into the array. |
JSONArray |
JSONArray.put(int index,
java.util.Map value)
Method to place a java.util.Map instance in the array. |
JSONArray |
JSONArray.put(int index,
java.util.Map value,
boolean includeSuperclass)
Method to place a java.util.Map instance in the array. |
JSONArray |
JSONArray.put(int index,
java.lang.Object element)
Map of java.util.ArrayList.add(int, java.lang.Object), for compatibility to other JSON parsers. |
JSONArray |
JSONArray.put(java.util.Map value)
Method to place a map into the array. |
JSONArray |
JSONArray.put(java.util.Map value,
boolean includeSuperclass)
Method to place a map into the array. |
JSONArray |
JSONArray.put(java.lang.Object element)
Map of java.util.ArrayList.add(java.lang.Object), for compatibility to other JSON parsers. |
JSONArray |
JSONArray.put(java.lang.Object element,
boolean includeSuperclass)
Map of java.util.ArrayList.add(java.lang.Object), for compatibility to other JSON parsers. |
java.lang.Object |
JSONObject.put(java.lang.Object key,
java.lang.Object value,
boolean includeSuperclass)
(non-Javadoc) |
JSONObject |
JSONObject.put(java.lang.String key,
boolean value)
Method to add an atomic boolean to the JSONObject. |
JSONObject |
JSONObject.put(java.lang.String key,
java.util.Collection value)
Method to add a Collection as a new JSONArray contained in this JSONObject |
JSONObject |
JSONObject.put(java.lang.String key,
java.util.Collection value,
boolean includeSuperclass)
Method to add a Collection as a new JSONArray contained in this JSONObject |
JSONObject |
JSONObject.put(java.lang.String key,
double value)
Method to add an atomic double to the JSONObject. |
JSONObject |
JSONObject.put(java.lang.String key,
int value)
Method to add an atomic integer to the JSONObject. |
JSONObject |
JSONObject.put(java.lang.String key,
long value)
Method to add an atomic long to the JSONObject. |
JSONObject |
JSONObject.put(java.lang.String key,
java.util.Map value)
Method to add a Map as a new JSONObject contained in this JSONObject Same as calling put(String, Map, true); |
JSONObject |
JSONObject.put(java.lang.String key,
java.util.Map value,
boolean includeSuperclass)
Method to add a Map as a new JSONObject contained in this JSONObject |
JSONObject |
JSONObject.put(java.lang.String key,
java.lang.Object value)
Similar to default HashMap put, except it returns JSONObject instead of Object. |
JSONObject |
JSONObject.put(java.lang.String key,
java.lang.Object[] value)
Method to add an Object array as a new JSONArray contained in this JSONObject |
JSONObject |
JSONObject.put(java.lang.String key,
java.lang.Object[] value,
boolean includeSuperclass)
Method to add an Object array as a new JSONArray contained in this JSONObject |
JSONObject |
JSONObject.put(java.lang.String key,
short value)
Method to add an atomic short to the JSONObject. |
JSONObject |
JSONObject.putOnce(java.lang.String key,
java.lang.Object value)
Put a key/value pair into the JSONObject, but only if key/value are both not null, and only if the key is not present already. |
JSONObject |
JSONObject.putOpt(java.lang.String key,
java.lang.Object value)
Put a key/value pair into the JSONObject, but only if the key and value are non-null. |
JSONArray |
JSONObject.toJSONArray(JSONArray names)
Produce a JSONArray containing the values of the members of this JSONObject |
java.lang.String |
JSONArray.toString(int indentDepth)
Function to return a string of JSON text with specified indention. |
java.lang.String |
JSONObject.toString(int indentDepth)
Function to return a string of JSON text with specified indention. |
JSONWriter |
JSONWriter.value(java.lang.Object o)
Method to write an Object to the current writer position. |
java.lang.String |
JSONArray.write()
Convert this object into a String of JSON text. |
java.lang.String |
JSONArtifact.write()
Convert this object into a String of JSON text. |
java.lang.String |
JSONObject.write()
Convert this object into a String of JSON text. |
java.lang.String |
JSONArray.write(boolean verbose)
Convert this object into a String of JSON text, specifying verbosity. |
java.lang.String |
JSONArtifact.write(boolean verbose)
Convert this object into a String of JSON text, specifying whether to use verbose (tab-indented) output or not. |
java.lang.String |
JSONObject.write(boolean verbose)
Convert this object into a String of JSON text, specifying whether to use verbose (tab-indented) output or not. |
java.lang.String |
JSONArray.write(int indentDepth)
Convert this array into a String of JSON text, specifying verbosity. |
java.lang.String |
JSONArtifact.write(int indentDepth)
Convert this object into a String of JSON text, specifying how many spaces should be used for each indent. |
java.lang.String |
JSONObject.write(int indentDepth)
Convert this object into a String of JSON text, specifying how many spaces should be used for each indent. |
java.io.OutputStream |
JSONArray.write(java.io.OutputStream os)
Convert this object into a stream of JSON text. |
java.io.OutputStream |
JSONArtifact.write(java.io.OutputStream os)
Write this object to the stream as JSON text in UTF-8 encoding. |
java.io.OutputStream |
JSONObject.write(java.io.OutputStream os)
Write this object to the stream as JSON text in UTF-8 encoding. |
java.io.OutputStream |
JSONArray.write(java.io.OutputStream os,
boolean verbose)
Convert this object into a stream of JSON text. |
java.io.OutputStream |
JSONArtifact.write(java.io.OutputStream os,
boolean verbose)
Write this object to the stream as JSON text in UTF-8 encoding, specifying whether to use verbose (tab-indented) output or not. |
java.io.OutputStream |
JSONObject.write(java.io.OutputStream os,
boolean verbose)
Convert this object into a stream of JSON text. |
java.io.OutputStream |
JSONArray.write(java.io.OutputStream os,
int indentDepth)
Convert this object into a String of JSON text, specifying how many spaces should be used for each indent level. |
java.io.OutputStream |
JSONArtifact.write(java.io.OutputStream os,
int indentDepth)
Write this object to the stream as JSON text in UTF-8 encoding, specifying how many spaces should be used for each indent. |
java.io.OutputStream |
JSONObject.write(java.io.OutputStream os,
int indentDepth)
Write this object to the stream as JSON text in UTF-8 encoding, specifying how many spaces should be used for each indent. |
java.io.Writer |
JSONArray.write(java.io.Writer writer)
Convert this object into a stream of JSON text. |
java.io.Writer |
JSONArtifact.write(java.io.Writer writer)
Write this object to the writer as JSON text. |
java.io.Writer |
JSONObject.write(java.io.Writer writer)
Write this object to the writer as JSON text. |
java.io.Writer |
JSONArray.write(java.io.Writer writer,
boolean verbose)
Convert this object into a stream of JSON text, specifying verbosity. |
java.io.Writer |
JSONArtifact.write(java.io.Writer writer,
boolean verbose)
Writer this object to the writer as JSON text, specifying whether to use verbose (tab-indented) output or not. |
java.io.Writer |
JSONObject.write(java.io.Writer writer,
boolean verbose)
Write this object to the writer as JSON text in UTF-8 encoding, specifying whether to use verbose (tab-indented) output or not. |
java.io.Writer |
JSONArray.write(java.io.Writer writer,
int indentDepth)
Convert this array into a stream of JSON text, specifying verbosity. |
java.io.Writer |
JSONArtifact.write(java.io.Writer writer,
int indentDepth)
Write this object to the writer as JSON text, specifying how many spaces should be used for each indent. |
java.io.Writer |
JSONObject.write(java.io.Writer writer,
int indentDepth)
Write this object to the writer as JSON text, specifying how many spaces should be used for each indent. |
Constructors in org.apache.wink.json4j that throw JSONException | |
---|---|
JSONArray(java.util.Collection col)
Create a new instance of this class based off the contents of the passed in collection |
|
JSONArray(java.util.Collection col,
boolean includeSuperclass)
Create a new instance of this class based off the contents of the passed in collection |
|
JSONArray(java.io.InputStream is)
Create a new instance of this class from the data provided from the input stream. |
|
JSONArray(java.io.InputStream is,
boolean strict)
Create a new instance of this class from the data provided from the input stream. |
|
JSONArray(java.lang.Object[] elems)
Create a new instance of this class based off the contents of the passed object array. |
|
JSONArray(java.lang.Object[] elems,
boolean includeSuperclass)
Create a new instance of this class based off the contents of the passed object array. |
|
JSONArray(java.io.Reader rdr)
Create a new instance of this class from the data provided from the reader. |
|
JSONArray(java.io.Reader rdr,
boolean strict)
Create a new instance of this class from the data provided from the reader. |
|
JSONArray(java.lang.String str)
Create a new instance of this class from the provided JSON object string. |
|
JSONArray(java.lang.String str,
boolean strict)
Create a new instance of this class from the provided JSON object string. |
|
JSONObject(java.io.InputStream is)
Create a new instance of this class from the data provided from the input stream. |
|
JSONObject(java.io.InputStream is,
boolean strict)
Create a new instance of this class from the data provided from the input stream. |
|
JSONObject(JSONObject obj,
java.lang.String[] keys)
Create a new instance of this class taking selected values from the underlying one. |
|
JSONObject(java.util.Map map,
boolean includeSuperclass)
Create a new instance of this class using the contents of the provided map. |
|
JSONObject(java.lang.Object javaBean)
Create a new instance of this class using the properties of the provided JavaBean. |
|
JSONObject(java.lang.Object javaBean,
boolean includeSuperclass)
Create a new instance of this class using the properties of the provided JavaBean. |
|
JSONObject(java.io.Reader rdr)
Create a new instance of this class from the data provided from the reader. |
|
JSONObject(java.io.Reader rdr,
boolean strict)
Create a new instance of this class from the data provided from the reader. |
|
JSONObject(java.lang.String str)
Create a new instance of this class from the provided JSON object string. |
|
JSONObject(java.lang.String str,
boolean strict)
Create a new instance of this class from the provided JSON object string. |
|
OrderedJSONObject(java.io.InputStream is)
Create a new instance of this class from the data provided from the input stream. |
|
OrderedJSONObject(java.io.InputStream is,
boolean strict)
Create a new instance of this class from the data provided from the input stream. |
|
OrderedJSONObject(java.util.Map map)
Create a new instance of this class using the contents of the provided map. |
|
OrderedJSONObject(java.io.Reader rdr)
Create a new instance of this class from the data provided from the reader. |
|
OrderedJSONObject(java.io.Reader rdr,
boolean strict)
Create a new instance of this class from the data provided from the reader. |
|
OrderedJSONObject(java.lang.String str)
Create a new instance of this class from the provided JSON object string. |
|
OrderedJSONObject(java.lang.String str,
boolean strict)
Create a new instance of this class from the provided JSON object string. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |