Uses of Class
org.apache.sling.commons.json.JSONObject
Packages that use JSONObject
Package
Description
-
Uses of JSONObject in org.apache.sling.commons.json
Methods in org.apache.sling.commons.json that return JSONObjectModifier and TypeMethodDescriptionJSONObject.accumulate(String key, Object value) Deprecated.Accumulate values under a key.Deprecated.Append values to the array under a key.JSONArray.getJSONObject(int index) Deprecated.Get the JSONObject associated with an index.JSONObject.getJSONObject(String key) Deprecated.Get the JSONObject value associated with a key.Deprecated.Increment a property of a JSONObject.JSONArray.optJSONObject(int index) Deprecated.Get the optional JSONObject associated with an index.JSONArray.optJSONObject(int index, JSONObject defaultValue) Deprecated.Get the optional JSONObject associated with an index.JSONObject.optJSONObject(String key) Deprecated.Get an optional JSONObject associated with a key.JSONObject.optJSONObject(String key, JSONObject defaultValue) Deprecated.Get an optional JSONObject associated with a key, or the default if there is no such key or if the value is not a JSONObject.Deprecated.Put a key/boolean pair in the JSONObject.Deprecated.Put a key/double pair in the JSONObject.Deprecated.Put a key/float pair in the JSONObject.Deprecated.Put a key/int pair in the JSONObject.Deprecated.Put a key/long pair in the JSONObject.Deprecated.Put a key/value pair in the 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.Deprecated.Put a key/value pair in the JSONObject, where the value will be a JSONObject which is produced from a Map.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.Deprecated.Put a key/value pair in the JSONObject, but only if the key and the value are both non-null.JSONArray.toJSONObject(JSONArray names) Deprecated.Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.Methods in org.apache.sling.commons.json with parameters of type JSONObjectModifier and TypeMethodDescriptionstatic String[]JSONObject.getNames(JSONObject jo) Deprecated.Get an array of field names from a JSONObject.JSONArray.optJSONObject(int index, JSONObject defaultValue) Deprecated.Get the optional JSONObject associated with an index.JSONObject.optJSONObject(String key, JSONObject defaultValue) Deprecated.Get an optional JSONObject associated with a key, or the default if there is no such key or if the value is not a JSONObject.Constructors in org.apache.sling.commons.json with parameters of type JSONObjectModifierConstructorDescriptionJSONObject(JSONObject jo, String... names) Deprecated.Construct a JSONObject from a subset of another JSONObject. -
Uses of JSONObject in org.apache.sling.commons.json.http
Methods in org.apache.sling.commons.json.http that return JSONObjectModifier and TypeMethodDescriptionstatic JSONObjectCookie.toJSONObject(String string) Deprecated.Convert a cookie specification string into a JSONObject.static JSONObjectCookieList.toJSONObject(String string) Deprecated.Convert a cookie list into a JSONObject.static JSONObjectHTTP.toJSONObject(String string) Deprecated.Convert an HTTP header string into a JSONObject.Methods in org.apache.sling.commons.json.http with parameters of type JSONObjectModifier and TypeMethodDescriptionstatic StringCookie.toString(JSONObject jo) Deprecated.Convert a JSONObject into a cookie specification string.static StringCookieList.toString(JSONObject jo) Deprecated.Convert a JSONObject into a cookie list.static StringHTTP.toString(JSONObject jo) Deprecated.Convert a JSONObject into an HTTP header. -
Uses of JSONObject in org.apache.sling.commons.json.io
Methods in org.apache.sling.commons.json.io with parameters of type JSONObjectModifier and TypeMethodDescriptionJSONRenderer.prettyPrint(JSONObject jo, JSONRenderer.Options opt) Deprecated.Make a prettyprinted JSON text of this JSONObject.JSONRenderer.toString(JSONObject jo) Deprecated.Render the supplied JSONObject to a String, in the simplest possible way.JSONRenderer.write(Writer writer, JSONObject jo) Deprecated.Write the contents of the supplied JSONObject as JSON text to a writer.JSONWriter.writeObject(JSONObject o) Deprecated.Append a JSON Object -
Uses of JSONObject in org.apache.sling.commons.json.jcr
Subclasses of JSONObject in org.apache.sling.commons.json.jcr -
Uses of JSONObject in org.apache.sling.commons.json.sling
Fields in org.apache.sling.commons.json.sling declared as JSONObjectMethods in org.apache.sling.commons.json.sling that return JSONObjectModifier and TypeMethodDescriptionstatic JSONObjectJsonObjectCreator.create(org.apache.sling.api.resource.Resource resource, int maxRecursionLevels) Deprecated.Dump given resource in JSON, optionally recursing into its objectsResourceTraversor.getJSONObject()Deprecated.Constructors in org.apache.sling.commons.json.sling with parameters of type JSONObject -
Uses of JSONObject in org.apache.sling.commons.json.util
Methods in org.apache.sling.commons.json.util that return JSONObjectModifier and TypeMethodDescriptionstatic JSONObjectCDL.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 JSONObjectCDL.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. -
Uses of JSONObject in org.apache.sling.commons.json.xml
Methods in org.apache.sling.commons.json.xml that return JSONObjectModifier and TypeMethodDescriptionstatic JSONObjectXML.toJSONObject(Reader reader) Deprecated.Convert a well-formed (but not necessarily valid) XML into a JSONObject.static JSONObjectXML.toJSONObject(Reader reader, boolean keepStrings) Deprecated.Convert a well-formed (but not necessarily valid) XML into a JSONObject.static JSONObjectXML.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 JSONObjectXML.toJSONObject(String string) Deprecated.Convert a well-formed (but not necessarily valid) XML string into a JSONObject.static JSONObjectXML.toJSONObject(String string, boolean keepStrings) Deprecated.Convert a well-formed (but not necessarily valid) XML string into a JSONObject.static JSONObjectXML.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.