Uses of Class
org.apache.sling.commons.json.JSONException
Packages that use JSONException
Package
Description
-
Uses of JSONException in org.apache.sling.commons.json
Methods in org.apache.sling.commons.json that return JSONExceptionModifier and TypeMethodDescriptionJSONTokener.syntaxError(String message) Deprecated.Make a JSONException to signal a syntax error.JSONTokener.syntaxError(String message, Throwable causedBy) Deprecated.Make a JSONException to signal a syntax error.Methods in org.apache.sling.commons.json that throw JSONExceptionModifier and TypeMethodDescriptionJSONObject.accumulate(String key, Object value) Deprecated.Accumulate values under a key.Deprecated.Append values to the array under a key.voidJSONTokener.back()Deprecated.Back up one character.JSONArray.get(int index) Deprecated.Get the object value associated with an index.Deprecated.Get the value object associated with a key.JSONArray.getBigDecimal(int index) Deprecated.Get the BigDecimal value associated with an index.JSONObject.getBigDecimal(String key) Deprecated.Get the BigDecimal value associated with a key.JSONArray.getBigInteger(int index) Deprecated.Get the BigInteger value associated with an index.JSONObject.getBigInteger(String key) Deprecated.Get the BigInteger value associated with a key.booleanJSONArray.getBoolean(int index) Deprecated.Get the boolean value associated with an index.booleanJSONObject.getBoolean(String key) Deprecated.Get the boolean value associated with a key.doubleJSONArray.getDouble(int index) Deprecated.Get the double value associated with an index.doubleDeprecated.Get the double value associated with a key.<E extends Enum<E>>
EDeprecated.Get the enum value associated with an index.<E extends Enum<E>>
EDeprecated.Get the enum value associated with a key.floatJSONArray.getFloat(int index) Deprecated.Get the float value associated with a key.floatDeprecated.Get the float value associated with a key.intJSONArray.getInt(int index) Deprecated.Get the int value associated with an index.intDeprecated.Get the int value associated with a key.JSONArray.getJSONArray(int index) Deprecated.Get the JSONArray associated with an index.JSONObject.getJSONArray(String key) Deprecated.Get the JSONArray value associated with a key.JSONArray.getJSONObject(int index) Deprecated.Get the JSONObject associated with an index.JSONObject.getJSONObject(String key) Deprecated.Get the JSONObject value associated with a key.longJSONArray.getLong(int index) Deprecated.Get the long value associated with an index.longDeprecated.Get the long value associated with a key.JSONArray.getNumber(int index) Deprecated.Get the Number value associated with a key.Deprecated.Get the Number value associated with a key.JSONArray.getString(int index) Deprecated.Get the string associated with an index.Deprecated.Get the string associated with a key.Deprecated.Increment a property of a JSONObject.Deprecated.Make a string from the contents of this JSONArray.booleanJSONTokener.more()Deprecated.Determine if the source string still contains characters that next() can consume.charJSONTokener.next()Deprecated.Get the next character in the source string.charJSONTokener.next(char c) Deprecated.Consume the next character, and check that it matches a specified character.JSONTokener.next(int n) Deprecated.Get the next n characters.charJSONTokener.nextClean()Deprecated.Get the next char in the string, skipping whitespace.JSONTokener.nextString(char quote) Deprecated.Return the characters up to the next close quote character.JSONTokener.nextTo(char delimiter) Deprecated.Get the text up but not including the specified character or the end of line, whichever comes first.Deprecated.Get the text up but not including one of the specified delimiter characters or the end of line, whichever comes first.JSONTokener.nextValue()Deprecated.Get the next value.static StringJSONObject.numberToString(Number number) Deprecated.Produce a string from a Number.JSONArray.put(double value) Deprecated.Append a double value.JSONArray.put(float value) Deprecated.Append a float value.JSONArray.put(int index, boolean value) Deprecated.Put or replace a boolean value in the JSONArray.JSONArray.put(int index, double value) Deprecated.Put or replace a double value.JSONArray.put(int index, float value) Deprecated.Put or replace a float value.JSONArray.put(int index, int value) Deprecated.Put or replace an int value.JSONArray.put(int index, long value) Deprecated.Put or replace a long value.Deprecated.Put or replace an object value in the JSONArray.JSONArray.put(int index, Collection<?> value) Deprecated.Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.Deprecated.Put a value in the JSONArray, where the value will be a JSONObject that is produced from a Map.JSONArray.put(int index, Map<?, ?> value, org.apache.sling.commons.json.JSONParserConfiguration jsonParserConfiguration) Deprecated.Put a value in the JSONArray, where the value will be a JSONObject that is produced from a Map.Deprecated.Put a key/boolean pair in the JSONObject.Deprecated.Put a key/double pair in the JSONObject.Deprecated.Put a key/float pair in the JSONObject.Deprecated.Put a key/int pair in the JSONObject.Deprecated.Put a key/long pair in the JSONObject.Deprecated.Put a key/value pair in the JSONObject.JSONObject.put(String key, Collection<?> value) Deprecated.Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.Deprecated.Put a key/value pair in the JSONObject, where the value will be a JSONObject which is produced from a Map.Deprecated.Put an array's elements in to the JSONArray.Deprecated.Put a key/value pair in the JSONObject, but only if the key and the value are both non-null, and only if there is not already a member with that name.Deprecated.Put a key/value pair in the JSONObject, but only if the key and the value are both non-null.charJSONTokener.skipTo(char to) Deprecated.Skip characters until the next character is the requested character.static voidJSONObject.testValidity(Object o) Deprecated.Throw an exception if the object is a NaN or infinite number.JSONObject.toJSONArray(JSONArray names) Deprecated.Produce a JSONArray containing the values of the members of this JSONObject.JSONArray.toJSONObject(JSONArray names) Deprecated.Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.JSONArray.toString(int indentFactor) Deprecated.Make a pretty-printed JSON text of this JSONArray.JSONObject.toString(int indentFactor) Deprecated.Make a pretty-printed JSON text of this JSONObject.static StringJSONObject.valueToString(Object value) Deprecated.Make a JSON text of an Object value.Deprecated.Write the contents of the JSONArray as JSON text to a writer.Deprecated.Write the contents of the JSONArray as JSON text to a writer.Deprecated.Write the contents of the JSONObject as JSON text to a writer.Deprecated.Write the contents of the JSONObject as JSON text to a writer.Constructors in org.apache.sling.commons.json that throw JSONExceptionModifierConstructorDescriptionJSONArray(int initialCapacity) Deprecated.Construct a JSONArray with the specified initial capacity.Deprecated.Construct a JSONArray from an array.Deprecated.Construct a JSONArray from a source JSON text.Deprecated.Construct a JSONArray from a JSONTokener.JSONObject(String source) Deprecated.Construct a JSONObject from a source JSON text string.JSONObject(String baseName, Locale locale) Deprecated.Construct a JSONObject from a ResourceBundle.Deprecated.Construct a JSONObject from a JSONTokener. -
Uses of JSONException in org.apache.sling.commons.json.http
Methods in org.apache.sling.commons.json.http that throw JSONExceptionModifier and TypeMethodDescriptionHTTPTokener.nextToken()Deprecated.Get the next token or string.static JSONObjectCookieList.toJSONObject(String string) Deprecated.Convert a cookie list into a JSONObject.static JSONObjectHTTP.toJSONObject(String string) Deprecated.Convert an HTTP header string into a JSONObject.static StringCookie.toString(JSONObject jo) Deprecated.Convert a JSONObject into a cookie specification string.static StringCookieList.toString(JSONObject jo) Deprecated.Convert a JSONObject into a cookie list.static StringHTTP.toString(JSONObject jo) Deprecated.Convert a JSONObject into an HTTP header. -
Uses of JSONException in org.apache.sling.commons.json.io
Methods in org.apache.sling.commons.json.io that throw JSONExceptionModifier and TypeMethodDescriptionJSONWriter.array()Deprecated.Begin appending a new array.JSONWriter.endArray()Deprecated.End an array.JSONWriter.endObject()Deprecated.End an object.Deprecated.Make a string from the contents of this JSONArray.Deprecated.Append a key.JSONRenderer.numberToString(Number n) Deprecated.Produce a string from a Number.JSONWriter.object()Deprecated.Begin appending a new object.JSONRenderer.prettyPrint(JSONArray ja, JSONRenderer.Options opt) Deprecated.Pretty-print a JSONArrayJSONRenderer.prettyPrint(JSONObject jo, JSONRenderer.Options opt) Deprecated.Make a prettyprinted JSON text of this JSONObject.voidJSONRenderer.testNumberValidity(Object o) Deprecated.Throw an exception if the object is an NaN or infinite number.JSONWriter.value(boolean b) Deprecated.Append either the valuetrueor the valuefalse.JSONWriter.value(double d) Deprecated.Append a double value.JSONWriter.value(long l) Deprecated.Append a long value.Deprecated.Append an object value.JSONRenderer.valueToString(Object value) Deprecated.Make a JSON text of an Object value.JSONRenderer.valueToString(Object value, JSONRenderer.Options opt) Deprecated.Make a JSON String of an Object value, with rendering optionsstatic StringJSONWriter.valueToString(Object value) Deprecated.Make a JSON text of an Object value.Deprecated.Write the contents of the supplied JSONArray as JSON text to a writer.JSONRenderer.write(Writer writer, JSONObject jo) Deprecated.Write the contents of the supplied JSONObject as JSON text to a writer.JSONWriter.writeArray(JSONArray a) Deprecated.Append a JSON ArrayJSONWriter.writeObject(JSONObject o) Deprecated.Append a JSON Object -
Uses of JSONException in org.apache.sling.commons.json.jcr
Methods in org.apache.sling.commons.json.jcr that throw JSONExceptionModifier and TypeMethodDescriptionprotected voidJsonJcrNode.addProperty(javax.jcr.Property p) Deprecated.protected voidDeprecated.voidDeprecated.Dump all Nodes of given NodeIterator in JSONvoidDeprecated.Dump given node in JSON, optionally recursing into its child nodesvoidDeprecated.the tidy mode was removed from the json libraryprotected voidJsonItemWriter.dump(javax.jcr.Node node, JSONWriter w, int currentRecursionLevel, int maxRecursionLevels) Deprecated.Dump given node in JSON, optionally recursing into its child nodesvoidDeprecated.Dump given property in JSONprotected voidJsonItemWriter.dumpSingleNode(javax.jcr.Node n, JSONWriter w, int currentRecursionLevel, int maxRecursionLevels) Deprecated.Dump a single nodeprotected voidJsonItemWriter.dumpValue(JSONWriter w, javax.jcr.Value v) Deprecated.Writes the given value to the JSON writer.protected voidJsonItemWriter.writeProperty(JSONWriter w, javax.jcr.Property p) Deprecated.Write a single propertyConstructors in org.apache.sling.commons.json.jcr that throw JSONExceptionModifierConstructorDescriptionJsonJcrNode(javax.jcr.Node node) Deprecated.Creates a JSONObject out ofnode.JsonJcrNode(javax.jcr.Node node, Set<String> propertyNamesToIgnore) Deprecated.Creates aJSONObjectout ofnode. -
Uses of JSONException in org.apache.sling.commons.json.sling
Methods in org.apache.sling.commons.json.sling that throw JSONExceptionModifier and TypeMethodDescriptionintResourceTraversor.collectResources()Deprecated.Recursive descent from startResource, collecting JSONObjects into startObject.static JSONObjectJsonObjectCreator.create(org.apache.sling.api.resource.Resource resource, int maxRecursionLevels) Deprecated.Dump given resource in JSON, optionally recursing into its objectsConstructors in org.apache.sling.commons.json.sling that throw JSONExceptionModifierConstructorDescriptionResourceTraversor(int levels, long maxResources, org.apache.sling.api.resource.Resource resource, boolean tidy) Deprecated.Create a ResourceTraversor, optionally limiting recursion and total number of resources -
Uses of JSONException in org.apache.sling.commons.json.util
Methods in org.apache.sling.commons.json.util that throw JSONExceptionModifier and TypeMethodDescriptionstatic JSONArrayCDL.rowToJSONArray(JSONTokener x) Deprecated.Produce a JSONArray of strings from a row of comma delimited values.static JSONArrayCDL.rowToJSONArray(JSONTokener x, char delimiter) Deprecated.Produce a JSONArray of strings from a row of comma delimited values.static JSONObjectCDL.rowToJSONObject(JSONArray names, JSONTokener x) Deprecated.Produce a JSONObject from a row of comma delimited text, using a parallel JSONArray of strings to provides the names of the elements.static JSONObjectCDL.rowToJSONObject(JSONArray names, JSONTokener x, char delimiter) Deprecated.Produce a JSONObject from a row of comma delimited text, using a parallel JSONArray of strings to provides the names of the elements.static JSONArrayCDL.toJSONArray(String string) Deprecated.Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names.static JSONArrayCDL.toJSONArray(String string, char delimiter) Deprecated.Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names.static JSONArrayCDL.toJSONArray(JSONArray names, String string) Deprecated.Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names.static JSONArrayCDL.toJSONArray(JSONArray names, String string, char delimiter) Deprecated.Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names.static JSONArrayCDL.toJSONArray(JSONArray names, JSONTokener x) Deprecated.Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names.static JSONArrayCDL.toJSONArray(JSONArray names, JSONTokener x, char delimiter) Deprecated.Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names.static JSONArrayCDL.toJSONArray(JSONTokener x) Deprecated.Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names.static JSONArrayCDL.toJSONArray(JSONTokener x, char delimiter) Deprecated.Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names.static StringDeprecated.Produce a comma delimited text from a JSONArray of JSONObjects.static StringDeprecated.Produce a comma delimited text from a JSONArray of JSONObjects.static StringDeprecated.Produce a comma delimited text from a JSONArray of JSONObjects using a provided list of names.static StringDeprecated.Produce a comma delimited text from a JSONArray of JSONObjects using a provided list of names.static voidDeprecated.Strictly validate the JSON textstatic voidValidator.validate(JSONTokener x) Deprecated.Strictly validate the JSON text -
Uses of JSONException in org.apache.sling.commons.json.xml
Methods in org.apache.sling.commons.json.xml that throw JSONExceptionModifier and TypeMethodDescriptionXMLTokener.nextCDATA()Deprecated.Get the text in the CDATA block.XMLTokener.nextContent()Deprecated.Get the next XML outer token, trimming whitespace.XMLTokener.nextEntity(char ampersand) Deprecated.Return the next entity. These entities are translated to Characters: & ' > < ".XMLTokener.nextMeta()Deprecated.Returns the next XML meta token. This is used for skipping over <!...> and <?...?> structures.XMLTokener.nextToken()Deprecated.Get the next XML Token. These tokens are found inside of angle brackets. It may be one of these characters: / > = ! ? or it may be a string wrapped in single quotes or double quotes, or it may be a name.static voidDeprecated.Throw an exception if the string contains whitespace.static JSONObjectXML.toJSONObject(Reader reader) Deprecated.Convert a well-formed (but not necessarily valid) XML into a JSONObject.static JSONObjectXML.toJSONObject(Reader reader, boolean keepStrings) Deprecated.Convert a well-formed (but not necessarily valid) XML into a JSONObject.static JSONObjectXML.toJSONObject(Reader reader, org.apache.sling.commons.json.xml.XMLParserConfiguration config) Deprecated.Convert a well-formed (but not necessarily valid) XML into a JSONObject.static JSONObjectXML.toJSONObject(String string) Deprecated.Convert a well-formed (but not necessarily valid) XML string into a JSONObject.static JSONObjectXML.toJSONObject(String string, boolean keepStrings) Deprecated.Convert a well-formed (but not necessarily valid) XML string into a JSONObject.static JSONObjectXML.toJSONObject(String string, org.apache.sling.commons.json.xml.XMLParserConfiguration config) Deprecated.Convert a well-formed (but not necessarily valid) XML string into a JSONObject.static StringDeprecated.Convert a JSONObject into a well-formed, element-normal XML string.static StringXML.toString(Object object, String tagName, org.apache.sling.commons.json.xml.XMLParserConfiguration config) Deprecated.Convert a JSONObject into a well-formed, element-normal XML string.static StringXML.toString(Object object, String tagName, org.apache.sling.commons.json.xml.XMLParserConfiguration config, int indentFactor) Deprecated.Convert a JSONObject into a well-formed, pretty printed element-normal XML string.