|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of JSONException in org.apache.sling.commons.json |
---|
Methods in org.apache.sling.commons.json that return JSONException | |
---|---|
JSONException |
JSONTokener.syntaxError(java.lang.String message)
Make a JSONException to signal a syntax error. |
Methods in org.apache.sling.commons.json that throw JSONException | |
---|---|
JSONObject |
JSONObject.accumulate(java.lang.String key,
java.lang.Object value)
Accumulate values under a key. |
JSONObject |
JSONObject.append(java.lang.String key,
java.lang.Object value)
Append values to the array under a key. |
java.lang.Object |
JSONArray.get(int index)
Get the object value associated with an index. |
java.lang.Object |
JSONObject.get(java.lang.String key)
Get the value object associated with a key. |
boolean |
JSONArray.getBoolean(int index)
Get the boolean value associated with an index. |
boolean |
JSONObject.getBoolean(java.lang.String key)
Get the boolean value associated with a key. |
double |
JSONArray.getDouble(int index)
Get the double value associated with an index. |
double |
JSONObject.getDouble(java.lang.String key)
Get the double value associated with a key. |
int |
JSONArray.getInt(int index)
Get the int value associated with an index. |
int |
JSONObject.getInt(java.lang.String key)
Get the int value associated with a key. |
JSONArray |
JSONArray.getJSONArray(int index)
Get the JSONArray associated with an index. |
JSONArray |
JSONObject.getJSONArray(java.lang.String key)
Get the JSONArray value associated with a key. |
JSONObject |
JSONArray.getJSONObject(int index)
Get the JSONObject associated with an index. |
JSONObject |
JSONObject.getJSONObject(java.lang.String key)
Get the JSONObject value associated with a key. |
long |
JSONArray.getLong(int index)
Get the long value associated with an index. |
long |
JSONObject.getLong(java.lang.String key)
Get the long value associated with a key. |
java.lang.String |
JSONArray.getString(int index)
Get the string associated with an index. |
java.lang.String |
JSONObject.getString(java.lang.String key)
Get the string associated with a key. |
java.lang.String |
JSONArray.join(java.lang.String separator)
Make a string from the contents of this JSONArray. |
char |
JSONTokener.next(char c)
Consume the next character, and check that it matches a specified character. |
java.lang.String |
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). |
java.lang.String |
JSONTokener.nextString(char quote)
Return the characters up to the next close quote character. |
java.lang.Object |
JSONTokener.nextValue()
Get the next value. |
static java.lang.String |
JSONObject.numberToString(java.lang.Number n)
Produce a string from a Number. |
JSONArray |
JSONArray.put(double value)
Append a double value. |
JSONArray |
JSONArray.put(int index,
boolean value)
Put or replace a boolean value in the JSONArray. |
JSONArray |
JSONArray.put(int index,
java.util.Collection<?> value)
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)
Put or replace a double value. |
JSONArray |
JSONArray.put(int index,
int value)
Put or replace an int value. |
JSONArray |
JSONArray.put(int index,
long value)
Put or replace a long value. |
JSONArray |
JSONArray.put(int index,
java.util.Map<java.lang.String,?> value)
Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map. |
JSONArray |
JSONArray.put(int index,
java.lang.Object value)
Put or replace an object value in the JSONArray. |
JSONObject |
JSONObject.put(java.lang.String key,
boolean value)
Put a key/boolean pair in the JSONObject. |
JSONObject |
JSONObject.put(java.lang.String key,
java.util.Collection<?> value)
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection. |
JSONObject |
JSONObject.put(java.lang.String key,
double value)
Put a key/double pair in the JSONObject. |
JSONObject |
JSONObject.put(java.lang.String key,
int value)
Put a key/int pair in the JSONObject. |
JSONObject |
JSONObject.put(java.lang.String key,
long value)
Put a key/long pair in the JSONObject. |
JSONObject |
JSONObject.put(java.lang.String key,
java.util.Map<java.lang.String,?> value)
Put a key/value pair in the JSONObject, where the value will be a JSONObject which is produced from a Map. |
JSONObject |
JSONObject.put(java.lang.String key,
java.lang.Object value)
Put a key/value pair in the JSONObject. |
JSONObject |
JSONObject.putOpt(java.lang.String key,
java.lang.Object value)
Put a key/value pair in the JSONObject, but only if the key and the value are both non-null. |
JSONArray |
JSONObject.toJSONArray(JSONArray names)
Produce a JSONArray containing the values of the members of this JSONObject. |
JSONObject |
JSONArray.toJSONObject(JSONArray names)
Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray. |
java.lang.String |
JSONObject.toString(int indentFactor)
Make a prettyprinted JSON text of this JSONObject. |
java.lang.String |
JSONArray.toString(int indentFactor)
Make a prettyprinted JSON text of this JSONArray. |
static java.lang.String |
JSONObject.valueToString(java.lang.Object value)
Make a JSON text of an Object value. |
java.io.Writer |
JSONObject.write(java.io.Writer writer)
Write the contents of the JSONObject as JSON text to a writer. |
java.io.Writer |
JSONArray.write(java.io.Writer writer)
Write the contents of the JSONArray as JSON text to a writer. |
Constructors in org.apache.sling.commons.json that throw JSONException | |
---|---|
JSONArray(JSONTokener x)
Construct a JSONArray from a JSONTokener. |
|
JSONArray(java.lang.String string)
Construct a JSONArray from a source sJSON text. |
|
JSONObject(JSONObject jo,
java.lang.String[] sa)
Construct a JSONObject from a subset of another JSONObject. |
|
JSONObject(JSONTokener x)
Construct a JSONObject from a JSONTokener. |
|
JSONObject(java.lang.String string)
Construct a JSONObject from a string. |
Uses of JSONException in org.apache.sling.commons.json.http |
---|
Methods in org.apache.sling.commons.json.http that throw JSONException | |
---|---|
java.lang.String |
HTTPTokener.nextToken()
Get the next token or string. |
static JSONObject |
HTTP.toJSONObject(java.lang.String string)
Convert an HTTP header string into a JSONObject. |
static JSONObject |
CookieList.toJSONObject(java.lang.String string)
Convert a cookie list into a JSONObject. |
static JSONObject |
Cookie.toJSONObject(java.lang.String string)
Convert a cookie specification string into a JSONObject. |
static java.lang.String |
HTTP.toString(JSONObject o)
Convert a JSONObject into an HTTP header. |
static java.lang.String |
CookieList.toString(JSONObject o)
Convert a JSONObject into a cookie list. |
static java.lang.String |
Cookie.toString(JSONObject o)
Convert a JSONObject into a cookie specification string. |
Uses of JSONException in org.apache.sling.commons.json.io |
---|
Methods in org.apache.sling.commons.json.io that throw JSONException | |
---|---|
JSONWriter |
JSONWriter.array()
Begin appending a new array. |
JSONWriter |
JSONWriter.endArray()
End an array. |
JSONWriter |
JSONWriter.endObject()
End an object. |
JSONWriter |
JSONWriter.key(java.lang.String s)
Append a key. |
JSONWriter |
JSONWriter.object()
Begin appending a new object. |
JSONWriter |
JSONWriter.value(boolean b)
Append either the value true or the value
false . |
JSONWriter |
JSONWriter.value(double d)
Append a double value. |
JSONWriter |
JSONWriter.value(long l)
Append a long value. |
JSONWriter |
JSONWriter.value(java.lang.Object o)
Append an object value. |
Uses of JSONException in org.apache.sling.commons.json.jcr |
---|
Methods in org.apache.sling.commons.json.jcr that throw JSONException | |
---|---|
protected void |
JsonJcrNode.addProperty(javax.jcr.Property p)
|
protected void |
JsonJcrNode.addValue(java.lang.String key,
javax.jcr.Value v)
|
void |
JsonItemWriter.dump(javax.jcr.NodeIterator it,
java.io.Writer out)
Dump all Nodes of given NodeIterator in JSON |
protected void |
JsonItemWriter.dump(javax.jcr.Node node,
JSONWriter w,
int currentRecursionLevel,
int maxRecursionLevels)
Dump given node in JSON, optionally recursing into its child nodes |
void |
JsonItemWriter.dump(javax.jcr.Node node,
java.io.Writer w,
int maxRecursionLevels)
Dump given node in JSON, optionally recursing into its child nodes |
void |
JsonItemWriter.dump(javax.jcr.Node node,
java.io.Writer w,
int maxRecursionLevels,
boolean tidy)
Dump given node in JSON, optionally recursing into its child nodes |
void |
JsonItemWriter.dump(javax.jcr.Property p,
java.io.Writer w)
Dump given property in JSON |
protected void |
JsonItemWriter.dumpSingleNode(javax.jcr.Node n,
JSONWriter w,
int currentRecursionLevel,
int maxRecursionLevels)
Dump a single node |
protected void |
JsonItemWriter.dumpValue(JSONWriter w,
javax.jcr.Value v)
Writes the given value to the JSON writer. currently the following conversions are done: JSR Property Type JSON Value Type BINARY always 0 as long DATE converted date string as defined by ECMA BOOLEAN boolean LONG long DOUBLE double all other string 1 Currently not implemented and uses 0 as default. |
protected void |
JsonItemWriter.writeProperty(JSONWriter w,
javax.jcr.Property p)
Write a single property |
Constructors in org.apache.sling.commons.json.jcr that throw JSONException | |
---|---|
JsonJcrNode(javax.jcr.Node node)
Creates a JSONObject out of node . |
|
JsonJcrNode(javax.jcr.Node node,
java.util.Set<java.lang.String> propertyNamesToIgnore)
Creates a JSONObject out of node . |
Uses of JSONException in org.apache.sling.commons.json.util |
---|
Methods in org.apache.sling.commons.json.util that throw JSONException | |
---|---|
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(JSONArray names,
java.lang.String string)
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 JSONArray |
CDL.toJSONArray(java.lang.String string)
Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names. |
static java.lang.String |
CDL.toString(JSONArray ja)
Produce a comma delimited text from a JSONArray of JSONObjects. |
static java.lang.String |
CDL.toString(JSONArray names,
JSONArray ja)
Produce a comma delimited text from a JSONArray of JSONObjects using a provided list of names. |
static void |
Validator.validate(JSONTokener x)
Strictly validate the JSON text |
static void |
Validator.validate(java.lang.String text)
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 JSONException | |
---|---|
java.lang.String |
XMLTokener.nextCDATA()
Get the text in the CDATA block. |
java.lang.Object |
XMLTokener.nextContent()
Get the next XML outer token, trimming whitespace. |
java.lang.Object |
XMLTokener.nextEntity(char a)
Return the next entity. |
java.lang.Object |
XMLTokener.nextMeta()
Returns the next XML meta token. |
java.lang.Object |
XMLTokener.nextToken()
Get the next XML Token. |
static JSONObject |
XML.toJSONObject(java.lang.String string)
Convert a well-formed (but not necessarily valid) XML string into a JSONObject. |
static java.lang.String |
XML.toString(java.lang.Object o)
Convert a JSONObject into a well-formed, element-normal XML string. |
static java.lang.String |
XML.toString(java.lang.Object o,
java.lang.String tagName)
Convert a JSONObject into a well-formed, element-normal XML string. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |