Uses of Class
org.codehaus.jettison.json.JSONException
Packages that use JSONException
Package
Description
-
Uses of JSONException in org.codehaus.jettison
Subclasses of JSONException in org.codehaus.jettisonMethods in org.codehaus.jettison that throw JSONExceptionModifier and TypeMethodDescriptionvoid
Convention.processAttributesAndNamespaces
(Node n, JSONObject object) Constructors in org.codehaus.jettison that throw JSONException -
Uses of JSONException in org.codehaus.jettison.badgerfish
Methods in org.codehaus.jettison.badgerfish that throw JSONExceptionModifier and TypeMethodDescriptionvoid
BadgerFishConvention.processAttributesAndNamespaces
(Node n, JSONObject object) private void
BadgerFishXMLStreamReader.processKey
(String nextKey, Object newObj) Constructors in org.codehaus.jettison.badgerfish that throw JSONException -
Uses of JSONException in org.codehaus.jettison.json
Methods in org.codehaus.jettison.json that return JSONExceptionModifier and TypeMethodDescriptionJSONTokener.syntaxError
(String message) Make a JSONException to signal a syntax error.Methods in org.codehaus.jettison.json that throw JSONExceptionModifier and TypeMethodDescriptionJSONObject.accumulate
(String key, Object value) Accumulate values under a key.Append values to the array under a key.private JSONWriter
Append a value.JSONWriter.array()
Begin appending a new array.private void
JSONTokener.checkRecursionDepth()
private boolean
JSONObject.doGetBoolean
(String key, Object o) private double
JSONObject.doGetDouble
(String key, Object o) private int
private long
protected JSONObject
private JSONWriter
JSONWriter.end
(char m, char c) End something.JSONWriter.endArray()
End an array.JSONWriter.endObject()
End an object.JSONArray.get
(int index) Get the object value associated with an index.Get the value object associated with a key.boolean
JSONArray.getBoolean
(int index) Get the boolean value associated with an index.boolean
JSONObject.getBoolean
(String key) Get the boolean value associated with a key.double
JSONArray.getDouble
(int index) Get the double value associated with an index.double
Get the double value associated with a key.int
JSONArray.getInt
(int index) Get the int value associated with an index.int
Get the int value associated with a key.JSONArray.getJSONArray
(int index) Get the JSONArray associated with an index.JSONObject.getJSONArray
(String key) Get the JSONArray value associated with a key.JSONArray.getJSONObject
(int index) Get the JSONObject associated with an index.JSONObject.getJSONObject
(String key) Get the JSONObject value associated with a key.long
JSONArray.getLong
(int index) Get the long value associated with an index.long
Get the long value associated with a key.JSONArray.getString
(int index) Get the string associated with an index.Get the string associated with a key.Make a string from the contents of this JSONArray.Append a key.protected JSONArray
JSONTokener.newJSONArray()
protected JSONObject
JSONTokener.newJSONObject()
char
JSONTokener.next
(char c) Consume the next character, and check that it matches a specified character.JSONTokener.next
(int n) Get the next n characters.char
JSONTokener.nextClean()
Get the next char in the string, skipping whitespace and comments (slashslash, slashstar, and hash).JSONTokener.nextString
(char quote) Return the characters up to the next close quote character.JSONTokener.nextValue()
Get the next value.static String
JSONObject.numberToString
(Number n) Produce a string from a Number.JSONWriter.object()
Begin appending a new object.private void
JSONWriter.pop
(char c) Pop an array or object scope.private void
JSONWriter.push
(char c) Push an array or object scope.JSONArray.put
(double value) Append a double value.JSONArray.put
(int index, boolean value) Put or replace a boolean value in the JSONArray.JSONArray.put
(int index, double value) Put or replace a double value.JSONArray.put
(int index, int value) Put or replace an int value.JSONArray.put
(int index, long value) Put or replace a long value.Put or replace an object value in the JSONArray.JSONArray.put
(int index, Collection value) Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.JSONArray.put
(Collection value) Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.Put a key/boolean pair in the JSONObject.Put a key/double pair in the JSONObject.Put a key/int pair in the JSONObject.Put a key/long pair in the JSONObject.Put a key/value pair in the JSONObject.JSONObject.put
(String key, Collection value) Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.Put a key/value pair in the JSONObject, where the value will be a JSONObject which is produced from a Map.Put a key/value pair in the JSONObject, but only if the key and the value are both non-null.(package private) static void
JSONObject.testValidity
(Object o) Throw an exception if the object is an NaN or infinite number.JSONObject.toJSONArray
(JSONArray names) Produce a JSONArray containing the values of the members of this JSONObject.JSONArray.toJSONObject
(JSONArray names) Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.JSONArray.toString
(int indentFactor) Make a prettyprinted JSON text of this JSONArray.(package private) String
JSONArray.toString
(int indentFactor, int indent) Make a prettyprinted JSON text of this JSONArray.JSONObject.toString
(int indentFactor) Make a prettyprinted JSON text of this JSONObject.(package private) String
JSONObject.toString
(int indentFactor, int indent) Make a prettyprinted JSON text of this JSONObject.JSONWriter.value
(boolean b) Append either the valuetrue
or the valuefalse
.JSONWriter.value
(double d) Append a double value.JSONWriter.value
(long l) Append a long value.Append an object value.(package private) static String
JSONObject.valueToString
(Object value, boolean escapeForwardSlash) Make a JSON text of an Object value.(package private) static String
JSONObject.valueToString
(Object value, int indentFactor, int indent, boolean escapeForwardSlash) Make a prettyprinted JSON text of an object value.Write the contents of the JSONArray as JSON text to a writer.Write the contents of the JSONObject as JSON text to a writer.Constructors in org.codehaus.jettison.json that throw JSONExceptionModifierConstructorDescriptionConstruct a JSONArray from a source sJSON text.JSONArray
(Collection collection) Construct a JSONArray from a Collection.private
JSONArray
(Collection collection, int recursionDepth) Construct a JSONArray from a JSONTokener.JSONObject
(String string) Construct a JSONObject from a string.JSONObject
(Map map) Construct a JSONObject from a Map.private
JSONObject
(Map map, int recursionDepth) JSONObject
(JSONObject jo, String[] sa) Construct a JSONObject from a subset of another JSONObject.Construct a JSONObject from a JSONTokener. -
Uses of JSONException in org.codehaus.jettison.mapped
Methods in org.codehaus.jettison.mapped that throw JSONExceptionModifier and TypeMethodDescriptionprotected JSONObject
MappedXMLInputFactory.createJSONObject
(JSONTokener tokener) void
MappedNamespaceConvention.processAttributesAndNamespaces
(Node n, JSONObject object) private boolean
MappedXMLStreamReader.processUniformArrayIfPossible
(String arrayKey, JSONArray array) private void
MappedNamespaceConvention.readAttribute
(Node n, String name, String value) private void
MappedNamespaceConvention.readAttribute
(Node n, String k, JSONArray array) Constructors in org.codehaus.jettison.mapped that throw JSONExceptionModifierConstructorDescription