| Package | Description |
|---|---|
| org.apache.sling.commons.json | |
| org.apache.sling.commons.json.io | |
| org.apache.sling.commons.json.util |
| Modifier and Type | Method and Description |
|---|---|
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.
|
JSONArray |
JSONObject.names()
Deprecated.
Produce a JSONArray containing the names of the elements of this
JSONObject.
|
JSONArray |
JSONArray.optJSONArray(int index)
Deprecated.
Get the optional JSONArray associated with an index.
|
JSONArray |
JSONArray.optJSONArray(int index,
JSONArray defaultValue)
Deprecated.
Get the optional JSONArray associated with an index.
|
JSONArray |
JSONObject.optJSONArray(String key)
Deprecated.
Get an optional JSONArray associated with a key.
|
JSONArray |
JSONObject.optJSONArray(String key,
JSONArray defaultValue)
Deprecated.
Get an optional JSONArray associated with a key, or the default if there
is no such key, or if its value is not a JSONArray.
|
JSONArray |
JSONArray.put(boolean value)
Deprecated.
Append a boolean value.
|
JSONArray |
JSONArray.put(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(double value)
Deprecated.
Append a double value.
|
JSONArray |
JSONArray.put(float value)
Deprecated.
Append a float value.
|
JSONArray |
JSONArray.put(int value)
Deprecated.
Append an int 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.
|
JSONArray |
JSONArray.put(long value)
Deprecated.
Append an long value.
|
JSONArray |
JSONArray.put(Map<?,?> value)
Deprecated.
Put a value in the JSONArray, where the value will be a JSONObject which
is produced from a Map.
|
JSONArray |
JSONArray.put(Object value)
Deprecated.
Append an object value.
|
JSONArray |
JSONArray.putAll(Collection<?> collection)
Deprecated.
Put a collection's elements in to the JSONArray.
|
JSONArray |
JSONArray.putAll(Iterable<?> iter)
Deprecated.
Put an Iterable's elements in to the JSONArray.
|
JSONArray |
JSONArray.putAll(JSONArray array)
Deprecated.
Put a JSONArray's elements in to the JSONArray.
|
JSONArray |
JSONArray.putAll(Object array)
Deprecated.
Put an array's elements in to the JSONArray.
|
JSONArray |
JSONObject.toJSONArray(JSONArray names)
Deprecated.
Produce a JSONArray containing the values of the members of this
JSONObject.
|
| Modifier and Type | Method and Description |
|---|---|
JSONArray |
JSONArray.optJSONArray(int index,
JSONArray defaultValue)
Deprecated.
Get the optional JSONArray associated with an index.
|
JSONArray |
JSONObject.optJSONArray(String key,
JSONArray defaultValue)
Deprecated.
Get an optional JSONArray associated with a key, or the default if there
is no such key, or if its value is not a JSONArray.
|
JSONArray |
JSONArray.putAll(JSONArray array)
Deprecated.
Put a JSONArray's elements in to the JSONArray.
|
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.
|
| Constructor and Description |
|---|
JSONArray(JSONArray array)
Deprecated.
Construct a JSONArray from another JSONArray.
|
| Modifier and Type | Method and Description |
|---|---|
String |
JSONRenderer.join(JSONArray ja,
String separator)
Deprecated.
Make a string from the contents of this JSONArray.
|
String |
JSONRenderer.prettyPrint(JSONArray ja,
JSONRenderer.Options opt)
Deprecated.
Pretty-print a JSONArray
|
String |
JSONRenderer.toString(JSONArray ja)
Deprecated.
Make a JSON text of the supplied JSONArray.
|
Writer |
JSONRenderer.write(Writer writer,
JSONArray ja)
Deprecated.
Write the contents of the supplied JSONArray as JSON text to a writer.
|
JSONWriter |
JSONWriter.writeArray(JSONArray a)
Deprecated.
Append a JSON Array
|
| 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 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.
|
| Modifier and Type | Method and Description |
|---|---|
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 String |
CDL.rowToString(JSONArray ja)
Deprecated.
Produce a comma delimited text row from a JSONArray.
|
static String |
CDL.rowToString(JSONArray ja,
char delimiter)
Deprecated.
Produce a comma delimited text row from a JSONArray.
|
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 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.
|
Copyright © 2007–2023 The Apache Software Foundation. All rights reserved.