| Modifier and Type | Method and Description |
|---|---|
JSONException |
JSONTokener.syntaxError(String message)
Deprecated.
Make a JSONException to signal a syntax error.
|
JSONException |
JSONTokener.syntaxError(String message,
Throwable causedBy)
Deprecated.
Make a JSONException to signal a syntax error.
|
| Modifier and Type | Method and Description |
|---|---|
JSONObject |
JSONObject.accumulate(String key,
Object value)
Deprecated.
Accumulate values under a key.
|
JSONObject |
JSONObject.append(String key,
Object value)
Deprecated.
Append values to the array under a key.
|
void |
JSONTokener.back()
Deprecated.
Back up one character.
|
Object |
JSONArray.get(int index)
Deprecated.
Get the object value associated with an index.
|
Object |
JSONObject.get(String key)
Deprecated.
Get the value object associated with a key.
|
BigDecimal |
JSONArray.getBigDecimal(int index)
Deprecated.
Get the BigDecimal value associated with an index.
|
BigDecimal |
JSONObject.getBigDecimal(String key)
Deprecated.
Get the BigDecimal value associated with a key.
|
BigInteger |
JSONArray.getBigInteger(int index)
Deprecated.
Get the BigInteger value associated with an index.
|
BigInteger |
JSONObject.getBigInteger(String key)
Deprecated.
Get the BigInteger value associated with a key.
|
boolean |
JSONArray.getBoolean(int index)
Deprecated.
Get the boolean value associated with an index.
|
boolean |
JSONObject.getBoolean(String key)
Deprecated.
Get the boolean value associated with a key.
|
double |
JSONArray.getDouble(int index)
Deprecated.
Get the double value associated with an index.
|
double |
JSONObject.getDouble(String key)
Deprecated.
Get the double value associated with a key.
|
<E extends Enum<E>> |
JSONArray.getEnum(Class<E> clazz,
int index)
Deprecated.
Get the enum value associated with an index.
|
<E extends Enum<E>> |
JSONObject.getEnum(Class<E> clazz,
String key)
Deprecated.
Get the enum value associated with a key.
|
float |
JSONArray.getFloat(int index)
Deprecated.
Get the float value associated with a key.
|
float |
JSONObject.getFloat(String key)
Deprecated.
Get the float value associated with a key.
|
int |
JSONArray.getInt(int index)
Deprecated.
Get the int value associated with an index.
|
int |
JSONObject.getInt(String key)
Deprecated.
Get the int value associated with a key.
|
JSONArray |
JSONArray.getJSONArray(int index)
Deprecated.
Get the JSONArray associated with an index.
|
JSONArray |
JSONObject.getJSONArray(String key)
Deprecated.
Get the JSONArray value associated with a key.
|
JSONObject |
JSONArray.getJSONObject(int index)
Deprecated.
Get the JSONObject associated with an index.
|
JSONObject |
JSONObject.getJSONObject(String key)
Deprecated.
Get the JSONObject value associated with a key.
|
long |
JSONArray.getLong(int index)
Deprecated.
Get the long value associated with an index.
|
long |
JSONObject.getLong(String key)
Deprecated.
Get the long value associated with a key.
|
Number |
JSONArray.getNumber(int index)
Deprecated.
Get the Number value associated with a key.
|
Number |
JSONObject.getNumber(String key)
Deprecated.
Get the Number value associated with a key.
|
String |
JSONArray.getString(int index)
Deprecated.
Get the string associated with an index.
|
String |
JSONObject.getString(String key)
Deprecated.
Get the string associated with a key.
|
JSONObject |
JSONObject.increment(String key)
Deprecated.
Increment a property of a JSONObject.
|
String |
JSONArray.join(String separator)
Deprecated.
Make a string from the contents of this JSONArray.
|
boolean |
JSONTokener.more()
Deprecated.
Determine if the source string still contains characters that next()
can consume.
|
char |
JSONTokener.next()
Deprecated.
Get the next character in the source string.
|
char |
JSONTokener.next(char c)
Deprecated.
Consume the next character, and check that it matches a specified
character.
|
String |
JSONTokener.next(int n)
Deprecated.
Get the next n characters.
|
char |
JSONTokener.nextClean()
Deprecated.
Get the next char in the string, skipping whitespace.
|
String |
JSONTokener.nextString(char quote)
Deprecated.
Return the characters up to the next close quote character.
|
String |
JSONTokener.nextTo(char delimiter)
Deprecated.
Get the text up but not including the specified character or the
end of line, whichever comes first.
|
String |
JSONTokener.nextTo(String delimiters)
Deprecated.
Get the text up but not including one of the specified delimiter
characters or the end of line, whichever comes first.
|
Object |
JSONTokener.nextValue()
Deprecated.
Get the next value.
|
static String |
JSONObject.numberToString(Number number)
Deprecated.
Produce a string from a Number.
|
JSONArray |
JSONArray.put(double value)
Deprecated.
Append a double value.
|
JSONArray |
JSONArray.put(float value)
Deprecated.
Append a float value.
|
JSONArray |
JSONArray.put(int index,
boolean value)
Deprecated.
Put or replace a boolean value in the JSONArray.
|
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.
|
JSONArray |
JSONArray.put(int index,
double value)
Deprecated.
Put or replace a double value.
|
JSONArray |
JSONArray.put(int index,
float value)
Deprecated.
Put or replace a float value.
|
JSONArray |
JSONArray.put(int index,
int value)
Deprecated.
Put or replace an int value.
|
JSONArray |
JSONArray.put(int index,
long value)
Deprecated.
Put or replace a long value.
|
JSONArray |
JSONArray.put(int index,
Map<?,?> value)
Deprecated.
Put a value in the JSONArray, where the value will be a JSONObject that
is produced from a Map.
|
JSONArray |
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.
|
JSONArray |
JSONArray.put(int index,
Object value)
Deprecated.
Put or replace an object value in the JSONArray.
|
JSONObject |
JSONObject.put(String key,
boolean value)
Deprecated.
Put a key/boolean pair in the JSONObject.
|
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.
|
JSONObject |
JSONObject.put(String key,
double value)
Deprecated.
Put a key/double pair in the JSONObject.
|
JSONObject |
JSONObject.put(String key,
float value)
Deprecated.
Put a key/float pair in the JSONObject.
|
JSONObject |
JSONObject.put(String key,
int value)
Deprecated.
Put a key/int pair in the JSONObject.
|
JSONObject |
JSONObject.put(String key,
long value)
Deprecated.
Put a key/long pair in the JSONObject.
|
JSONObject |
JSONObject.put(String key,
Map<?,?> value)
Deprecated.
Put a key/value pair in the JSONObject, where the value will be a
JSONObject which is produced from a Map.
|
JSONObject |
JSONObject.put(String key,
Object value)
Deprecated.
Put a key/value pair in the JSONObject.
|
JSONArray |
JSONArray.putAll(Object array)
Deprecated.
Put an array's elements in to the JSONArray.
|
JSONObject |
JSONObject.putOnce(String key,
Object value)
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.
|
JSONObject |
JSONObject.putOpt(String key,
Object value)
Deprecated.
Put a key/value pair in the JSONObject, but only if the key and the value
are both non-null.
|
char |
JSONTokener.skipTo(char to)
Deprecated.
Skip characters until the next character is the requested character.
|
static void |
JSONObject.testValidity(Object o)
Deprecated.
Throw an exception if the object is a NaN or infinite number.
|
JSONArray |
JSONObject.toJSONArray(JSONArray names)
Deprecated.
Produce a JSONArray containing the values of the members of this
JSONObject.
|
JSONObject |
JSONArray.toJSONObject(JSONArray names)
Deprecated.
Produce a JSONObject by combining a JSONArray of names with the values of
this JSONArray.
|
String |
JSONObject.toString(int indentFactor)
Deprecated.
Make a pretty-printed JSON text of this JSONObject.
|
String |
JSONArray.toString(int indentFactor)
Deprecated.
Make a pretty-printed JSON text of this JSONArray.
|
static String |
JSONObject.valueToString(Object value)
Deprecated.
Make a JSON text of an Object value.
|
Writer |
JSONObject.write(Writer writer)
Deprecated.
Write the contents of the JSONObject as JSON text to a writer.
|
Writer |
JSONArray.write(Writer writer)
Deprecated.
Write the contents of the JSONArray as JSON text to a writer.
|
Writer |
JSONObject.write(Writer writer,
int indentFactor,
int indent)
Deprecated.
Write the contents of the JSONObject as JSON text to a writer.
|
Writer |
JSONArray.write(Writer writer,
int indentFactor,
int indent)
Deprecated.
Write the contents of the JSONArray as JSON text to a writer.
|
| Constructor and Description |
|---|
JSONArray(int initialCapacity)
Deprecated.
Construct a JSONArray with the specified initial capacity.
|
JSONArray(JSONTokener x)
Deprecated.
Construct a JSONArray from a JSONTokener.
|
JSONArray(Object array)
Deprecated.
Construct a JSONArray from an array.
|
JSONArray(String source)
Deprecated.
Construct a JSONArray from a source JSON text.
|
JSONObject(JSONTokener x)
Deprecated.
Construct a JSONObject 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.
|
| Modifier and Type | Method and Description |
|---|---|
String |
HTTPTokener.nextToken()
Deprecated.
Get the next token or string.
|
static JSONObject |
HTTP.toJSONObject(String string)
Deprecated.
Convert an HTTP header string into a JSONObject.
|
static JSONObject |
CookieList.toJSONObject(String string)
Deprecated.
Convert a cookie list into a JSONObject.
|
static String |
HTTP.toString(JSONObject jo)
Deprecated.
Convert a JSONObject into an HTTP header.
|
static String |
CookieList.toString(JSONObject jo)
Deprecated.
Convert a JSONObject into a cookie list.
|
static String |
Cookie.toString(JSONObject jo)
Deprecated.
Convert a JSONObject into a cookie specification string.
|
| Modifier and Type | Method and Description |
|---|---|
JSONWriter |
JSONWriter.array()
Deprecated.
Begin appending a new array.
|
JSONWriter |
JSONWriter.endArray()
Deprecated.
End an array.
|
JSONWriter |
JSONWriter.endObject()
Deprecated.
End an object.
|
String |
JSONRenderer.join(JSONArray ja,
String separator)
Deprecated.
Make a string from the contents of this JSONArray.
|
JSONWriter |
JSONWriter.key(String string)
Deprecated.
Append a key.
|
String |
JSONRenderer.numberToString(Number n)
Deprecated.
Produce a string from a Number.
|
JSONWriter |
JSONWriter.object()
Deprecated.
Begin appending a new object.
|
String |
JSONRenderer.prettyPrint(JSONArray ja,
JSONRenderer.Options opt)
Deprecated.
Pretty-print a JSONArray
|
String |
JSONRenderer.prettyPrint(JSONObject jo,
JSONRenderer.Options opt)
Deprecated.
Make a prettyprinted JSON text of this JSONObject.
|
void |
JSONRenderer.testNumberValidity(Object o)
Deprecated.
Throw an exception if the object is an NaN or infinite number.
|
JSONWriter |
JSONWriter.value(boolean b)
Deprecated.
Append either the value
true or the value
false. |
JSONWriter |
JSONWriter.value(double d)
Deprecated.
Append a double value.
|
JSONWriter |
JSONWriter.value(long l)
Deprecated.
Append a long value.
|
JSONWriter |
JSONWriter.value(Object object)
Deprecated.
Append an object value.
|
static String |
JSONWriter.valueToString(Object value)
Deprecated.
Make a JSON text of an Object value.
|
String |
JSONRenderer.valueToString(Object value)
Deprecated.
Make a JSON text of an Object value.
|
String |
JSONRenderer.valueToString(Object value,
JSONRenderer.Options opt)
Deprecated.
Make a JSON String of an Object value, with rendering options
|
Writer |
JSONRenderer.write(Writer writer,
JSONArray ja)
Deprecated.
Write the contents of the supplied JSONArray as JSON text to a writer.
|
Writer |
JSONRenderer.write(Writer writer,
JSONObject jo)
Deprecated.
Write the contents of the supplied JSONObject as JSON text to a writer.
|
JSONWriter |
JSONWriter.writeArray(JSONArray a)
Deprecated.
Append a JSON Array
|
JSONWriter |
JSONWriter.writeObject(JSONObject o)
Deprecated.
Append a JSON Object
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
JsonJcrNode.addProperty(javax.jcr.Property p)
Deprecated.
|
protected void |
JsonJcrNode.addValue(String key,
javax.jcr.Value v)
Deprecated.
|
void |
JsonItemWriter.dump(javax.jcr.NodeIterator it,
Writer out)
Deprecated.
Dump all Nodes of given NodeIterator in JSON
|
protected void |
JsonItemWriter.dump(javax.jcr.Node node,
JSONWriter w,
int currentRecursionLevel,
int maxRecursionLevels)
Deprecated.
Dump given node in JSON, optionally recursing into its child nodes
|
void |
JsonItemWriter.dump(javax.jcr.Node node,
Writer w,
int maxRecursionLevels)
Deprecated.
Dump given node in JSON, optionally recursing into its child nodes
|
void |
JsonItemWriter.dump(javax.jcr.Node node,
Writer w,
int maxRecursionLevels,
boolean tidy)
Deprecated.
the tidy mode was removed from the json library
|
void |
JsonItemWriter.dump(javax.jcr.Property p,
Writer w)
Deprecated.
Dump given property in JSON
|
protected void |
JsonItemWriter.dumpSingleNode(javax.jcr.Node n,
JSONWriter w,
int currentRecursionLevel,
int maxRecursionLevels)
Deprecated.
Dump a single node
|
protected void |
JsonItemWriter.dumpValue(JSONWriter w,
javax.jcr.Value v)
Deprecated.
Writes the given value to the JSON writer.
|
protected void |
JsonItemWriter.writeProperty(JSONWriter w,
javax.jcr.Property p)
Deprecated.
Write a single property
|
| Constructor and Description |
|---|
JsonJcrNode(javax.jcr.Node node)
Deprecated.
Creates a JSONObject out of
node. |
JsonJcrNode(javax.jcr.Node node,
Set<String> propertyNamesToIgnore)
Deprecated.
Creates a
JSONObject out of node. |
| Modifier and Type | Method and Description |
|---|---|
int |
ResourceTraversor.collectResources()
Deprecated.
Recursive descent from startResource, collecting JSONObjects into
startObject.
|
static JSONObject |
JsonObjectCreator.create(org.apache.sling.api.resource.Resource resource,
int maxRecursionLevels)
Deprecated.
Dump given resource in JSON, optionally recursing into its objects
|
| Constructor and Description |
|---|
ResourceTraversor(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
|
| Modifier and Type | Method and Description |
|---|---|
static JSONArray |
CDL.rowToJSONArray(JSONTokener x)
Deprecated.
Produce a JSONArray of strings from a row of comma delimited values.
|
static JSONArray |
CDL.rowToJSONArray(JSONTokener x,
char delimiter)
Deprecated.
Produce a JSONArray of strings from a row of comma delimited values.
|
static JSONObject |
CDL.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 JSONObject |
CDL.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 JSONArray |
CDL.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 JSONArray |
CDL.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 JSONArray |
CDL.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 JSONArray |
CDL.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 JSONArray |
CDL.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 JSONArray |
CDL.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 JSONArray |
CDL.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 JSONArray |
CDL.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 String |
CDL.toString(JSONArray ja)
Deprecated.
Produce a comma delimited text from a JSONArray of JSONObjects.
|
static String |
CDL.toString(JSONArray ja,
char delimiter)
Deprecated.
Produce a comma delimited text from a JSONArray of JSONObjects.
|
static String |
CDL.toString(JSONArray names,
JSONArray ja)
Deprecated.
Produce a comma delimited text from a JSONArray of JSONObjects using
a provided list of names.
|
static String |
CDL.toString(JSONArray names,
JSONArray ja,
char delimiter)
Deprecated.
Produce a comma delimited text from a JSONArray of JSONObjects using
a provided list of names.
|
static void |
Validator.validate(JSONTokener x)
Deprecated.
Strictly validate the JSON text
|
static void |
Validator.validate(String text)
Deprecated.
Strictly validate the JSON text
|
| Modifier and Type | Method and Description |
|---|---|
String |
XMLTokener.nextCDATA()
Deprecated.
Get the text in the CDATA block.
|
Object |
XMLTokener.nextContent()
Deprecated.
Get the next XML outer token, trimming whitespace.
|
Object |
XMLTokener.nextEntity(char ampersand)
Deprecated.
{@code
Return the next entity.
|
Object |
XMLTokener.nextMeta()
Deprecated.
{@code
Returns the next XML meta token.
|
Object |
XMLTokener.nextToken()
Deprecated.
{@code
Get the next XML Token.
|
static void |
XML.noSpace(String string)
Deprecated.
Throw an exception if the string contains whitespace.
|
static JSONObject |
XML.toJSONObject(Reader reader)
Deprecated.
Convert a well-formed (but not necessarily valid) XML into a
JSONObject.
|
static JSONObject |
XML.toJSONObject(Reader reader,
boolean keepStrings)
Deprecated.
Convert a well-formed (but not necessarily valid) XML into a
JSONObject.
|
static JSONObject |
XML.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 JSONObject |
XML.toJSONObject(String string)
Deprecated.
Convert a well-formed (but not necessarily valid) XML string into a
JSONObject.
|
static JSONObject |
XML.toJSONObject(String string,
boolean keepStrings)
Deprecated.
Convert a well-formed (but not necessarily valid) XML string into a
JSONObject.
|
static JSONObject |
XML.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 String |
XML.toString(Object object)
Deprecated.
Convert a JSONObject into a well-formed, element-normal XML string.
|
static String |
XML.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 String |
XML.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.
|
Copyright © 2007–2023 The Apache Software Foundation. All rights reserved.