Package | Description |
---|---|
org.apache.sling.commons.json | |
org.apache.sling.commons.json.http | |
org.apache.sling.commons.json.util | |
org.apache.sling.commons.json.xml |
Constructor and Description |
---|
JSONArray(JSONTokener x)
Construct a JSONArray from a JSONTokener.
|
JSONObject(JSONTokener x)
Construct a JSONObject from a JSONTokener.
|
Modifier and Type | Class and Description |
---|---|
class |
HTTPTokener
The HTTPTokener extends the JSONTokener to provide additional methods
for the parsing of HTTP headers.
|
Modifier and Type | Method and Description |
---|---|
static JSONArray |
CDL.rowToJSONArray(JSONTokener x)
Produce a JSONArray of strings from a row of comma delimited values.
|
static JSONObject |
CDL.rowToJSONObject(JSONArray names,
JSONTokener x)
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)
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)
Produce a JSONArray of JSONObjects from a comma delimited text string,
using the first row as a source of names.
|
static void |
Validator.validate(JSONTokener x)
Strictly validate the JSON text
|
Modifier and Type | Class and Description |
---|---|
class |
XMLTokener
The XMLTokener extends the JSONTokener to provide additional methods
for the parsing of XML texts.
|
Copyright © 2015 The Apache Software Foundation. All rights reserved.