Modifier and Type | Method and Description |
---|---|
JSONObject |
JSONObject.accumulate(String key,
Object value)
Accumulate values under a key.
|
JSONObject |
JSONObject.append(String key,
Object value)
Append values to the array under a key.
|
JSONObject |
JSONArray.getJSONObject(int index)
Get the JSONObject associated with an index.
|
JSONObject |
JSONObject.getJSONObject(String key)
Get the JSONObject value associated with a key.
|
JSONObject |
JSONArray.optJSONObject(int index)
Get the optional JSONObject associated with an index.
|
JSONObject |
JSONObject.optJSONObject(String key)
Get an optional JSONObject associated with a key.
|
JSONObject |
JSONObject.put(String key,
boolean value)
Put a key/boolean pair in the JSONObject.
|
JSONObject |
JSONObject.put(String key,
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(String key,
double value)
Put a key/double pair in the JSONObject.
|
JSONObject |
JSONObject.put(String key,
int value)
Put a key/int pair in the JSONObject.
|
JSONObject |
JSONObject.put(String key,
long value)
Put a key/long pair in the JSONObject.
|
JSONObject |
JSONObject.put(String key,
Map<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(String key,
Object value)
Put a key/value pair in the JSONObject.
|
JSONObject |
JSONObject.putOpt(String key,
Object value)
Put a key/value pair in the JSONObject, but only if the
key and the value are both non-null.
|
JSONObject |
JSONArray.toJSONObject(JSONArray names)
Produce a JSONObject by combining a JSONArray of names with the values
of this JSONArray.
|
Constructor and Description |
---|
JSONObject(JSONObject jo,
String[] sa)
Construct a JSONObject from a subset of another JSONObject.
|
Modifier and Type | Method and Description |
---|---|
static JSONObject |
HTTP.toJSONObject(String string)
Convert an HTTP header string into a JSONObject.
|
static JSONObject |
CookieList.toJSONObject(String string)
Convert a cookie list into a JSONObject.
|
static JSONObject |
Cookie.toJSONObject(String string)
Convert a cookie specification string into a JSONObject.
|
Modifier and Type | Method and Description |
---|---|
static String |
HTTP.toString(JSONObject o)
Convert a JSONObject into an HTTP header.
|
static String |
CookieList.toString(JSONObject o)
Convert a JSONObject into a cookie list.
|
static String |
Cookie.toString(JSONObject o)
Convert a JSONObject into a cookie specification string.
|
Modifier and Type | Method and Description |
---|---|
String |
JSONRenderer.prettyPrint(JSONObject jo,
JSONRenderer.Options opt)
Make a prettyprinted JSON text of this JSONObject.
|
String |
JSONRenderer.toString(JSONObject jo)
Render the supplied JSONObject to a String, in
the simplest possible way.
|
Writer |
JSONRenderer.write(Writer writer,
JSONObject jo)
Write the contents of the supplied JSONObject as JSON text to a writer.
|
Modifier and Type | Class and Description |
---|---|
class |
JsonJcrNode
This class makes it easy to create a JSON object out of a JCR node.
|
Modifier and Type | Field and Description |
---|---|
JSONObject |
ResourceTraversor.Entry.json |
Modifier and Type | Method and Description |
---|---|
static JSONObject |
JsonObjectCreator.create(Resource resource,
int maxRecursionLevels)
Dump given resource in JSON, optionally recursing into its objects
|
JSONObject |
ResourceTraversor.getJSONObject() |
Constructor and Description |
---|
Entry(Resource r,
JSONObject o) |
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
static JSONObject |
XML.toJSONObject(String string)
Convert a well-formed (but not necessarily valid) XML string into a
JSONObject.
|
Modifier and Type | Method and Description |
---|---|
JSONObject |
GetAcl.getAcl(javax.jcr.Session jcrSession,
String resourcePath)
Gets the access control list for a resource.
|
JSONObject |
GetEffectiveAcl.getEffectiveAcl(javax.jcr.Session jcrSession,
String resourcePath)
Gets the effective access control list for a resource.
|
Modifier and Type | Method and Description |
---|---|
JSONObject |
GetAclServlet.getAcl(javax.jcr.Session jcrSession,
String resourcePath) |
JSONObject |
GetEffectiveAclServlet.getEffectiveAcl(javax.jcr.Session jcrSession,
String resourcePath) |
protected JSONObject |
AbstractGetAclServlet.internalGetAcl(javax.jcr.Session jcrSession,
String resourcePath) |
Copyright © 2015 The Apache Software Foundation. All rights reserved.