Uses of Class
org.opencms.json.JSONException
-
Packages that use JSONException Package Description org.opencms.ade.configuration Contains the ade configuration classes.org.opencms.json Classes to create JSON objects and arrays for JavaScript in OpenCms.org.opencms.jsp.search.config.parser API classes for the configuration parsers of the search form support provided for server-side Solr search.org.opencms.jsp.userdata org.opencms.ui.favorites org.opencms.util Utility functions for String manipulation and other often used tasks.org.opencms.widgets Contains the widget implementations, these are GUI elements used in editors and dialogs of the OpenCms workplace.org.opencms.workplace.editors.directedit Used to control the generation of the HTML for the "direct edit" buttons.org.opencms.xml.xml2json org.opencms.xml.xml2json.document org.opencms.xml.xml2json.renderer -
-
Uses of JSONException in org.opencms.ade.configuration
Methods in org.opencms.ade.configuration that throw JSONException Modifier and Type Method Description protected CmsContainerElementBean
CmsADEManager. elementFromJson(JSONObject data)
Creates an element from its serialized data. -
Uses of JSONException in org.opencms.json
Methods in org.opencms.json that return JSONException Modifier and Type Method Description JSONException
JSONTokener. syntaxError(java.lang.String message)
Make a JSONException to signal a syntax error.Methods in org.opencms.json that throw JSONException Modifier and Type Method Description 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.JSONWriter
JSONWriter. array()
Begin appending a new array.void
JSONTokener. back()
Back up one character.JSONWriter
JSONWriter. endArray()
End an array.JSONWriter
JSONWriter. endObject()
End an object.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.JSONWriter
JSONWriter. key(java.lang.String s)
Append a key.void
JSONObject. merge(JSONObject jo, boolean overwrite, boolean deep)
Merges the current JSON object with the given one, modifying the this.boolean
JSONTokener. more()
Determine if the source string still contains characters that next() can consume.char
JSONTokener. next()
Get the next character in the source string.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.java.lang.String
XMLTokener. nextCDATA()
Get the text in the CDATA block.char
JSONTokener. nextClean()
Get the next char in the string, skipping whitespace and comments (slashslash, slashstar, and hash).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.String
JSONTokener. nextString(char quote)
Return the characters up to the next close quote character.java.lang.String
JSONTokener. nextTo(char d)
Get the text up but not including the specified character or the end of line, whichever comes first.java.lang.String
JSONTokener. nextTo(java.lang.String delimiters)
Get the text up but not including one of the specified delimiter characters or the end of line, whichever comes first.java.lang.Object
XMLTokener. nextToken()
Get the next XML Token.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.JSONWriter
JSONWriter. object()
Begin appending a new object.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, 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.lang.Object value)
Put or replace an object value in the JSONArray.JSONArray
JSONArray. put(int index, java.util.Collection<java.lang.Object> 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, java.util.Map<?,?> value)
Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.JSONObject
JSONObject. put(java.lang.String key, boolean value)
Put a key/boolean pair in the JSONObject.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.lang.Object value)
Put a key/value pair in the JSONObject.JSONObject
JSONObject. put(java.lang.String key, java.util.Collection<java.lang.Object> 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, java.util.Map<java.lang.String,java.lang.Object> value)
Put a key/value pair in the JSONObject, where the value will be a JSONObject which is produced from a Map.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.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.boolean
XMLTokener. skipPast(java.lang.String to)
Skip characters until past the requested string.char
JSONTokener. skipTo(char to)
Skip characters until the next character is the requested character.JSONObject
I_CmsJsonifable. toJson()
Returns the JSON representation of this object.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 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(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 JSONArray
JSONML. toJSONArray(java.lang.String string)
Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform.static JSONArray
JSONML. toJSONArray(XMLTokener x)
Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform.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.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
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.java.lang.String
JSONArray. toString(int indentFactor)
Make a pretty printed JSON text of this JSONArray.static java.lang.String
JSONML. toString(JSONArray ja)
Reverse the JSONML transformation, making an XML text from a JSONArray.java.lang.String
JSONObject. toString(int indentFactor)
Make a pretty printed JSON text of this 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.JSONWriter
JSONWriter. value(boolean b)
Append either the valuetrue
or the valuefalse
.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.static java.lang.String
JSONObject. valueToString(java.lang.Object value)
Make a JSON text of an Object value.static java.lang.String
JSONObject. valueToString(java.lang.Object value, int indentFactor, int indent)
Make a pretty printed JSON text of an object value.java.io.Writer
JSONArray. write(java.io.Writer writer)
Write the contents of the JSONArray as JSON text to a writer.java.io.Writer
JSONObject. write(java.io.Writer writer)
Write the contents of the JSONObject as JSON text to a writer.Constructors in org.opencms.json that throw JSONException Constructor Description JSONArray(java.lang.Object array)
Construct a JSONArray from an array.JSONArray(java.lang.Object array, boolean includeSuperClass)
Construct a JSONArray from an array with a bean.JSONArray(java.lang.String source)
Construct a JSONArray from a source JSON text.JSONArray(JSONTokener x)
Construct a JSONArray from a JSONTokener.JSONObject(java.lang.String source)
Construct a JSONObject from a source JSON text string.JSONObject(java.lang.String source, boolean sorted)
Construct a JSONObject from a source JSON text string, optionally sorted.JSONObject(JSONObject jo, java.lang.String[] names)
Construct a JSONObject from a subset of another JSONObject.JSONObject(JSONTokener x)
Construct a JSONObject from a JSONTokener.JSONObject(JSONTokener x, boolean sorted)
Construct a JSONObject from a JSONTokener, optionally sorted. -
Uses of JSONException in org.opencms.jsp.search.config.parser
Methods in org.opencms.jsp.search.config.parser that throw JSONException Modifier and Type Method Description protected void
CmsJSONSearchConfigurationParser. init(java.lang.String configString, I_CmsSearchConfiguration baseConfig)
Initialization that parses the String to a JSON object.protected java.util.List<I_CmsSearchConfigurationFacetQuery.I_CmsFacetQueryItem>
CmsJSONSearchConfigurationParser. parseFacetQueryItems(JSONObject queryFacetObject)
Parses the list of query items for the query facet.protected static java.util.List<java.lang.String>
CmsJSONSearchConfigurationParser. parseMandatoryStringValues(JSONObject json, java.lang.String key)
Helper for reading a mandatory String value list - throwing an Exception if parsing fails.Constructors in org.opencms.jsp.search.config.parser that throw JSONException Constructor Description CmsJSONSearchConfigurationParser(java.lang.String json)
Constructor taking the JSON as String.CmsJSONSearchConfigurationParser(java.lang.String json, I_CmsSearchConfiguration baseConfig)
Constructor taking the JSON as String.CmsSimpleSearchConfigurationParser(CmsObject cms, CmsConfigurationBean config, java.lang.String additionalParamJSON)
Constructor. -
Uses of JSONException in org.opencms.jsp.userdata
Constructors in org.opencms.jsp.userdata that throw JSONException Constructor Description CmsUserDataRequestInfo(java.lang.String data)
Creates a new instance from the JSON data in a string. -
Uses of JSONException in org.opencms.ui.favorites
Methods in org.opencms.ui.favorites that throw JSONException Modifier and Type Method Description JSONObject
CmsFavoriteEntry. toJson()
Converts this object to JSON. -
Uses of JSONException in org.opencms.util
Methods in org.opencms.util that throw JSONException Modifier and Type Method Description static java.lang.Object
CmsJsonUtil. mapJson(java.lang.Object obj, java.util.function.Function<java.lang.Object,java.lang.Object> func)
Recursively walks through a JSON structure and returns a copy of it, but transforms primitive values using the given function for the copy.static JSONObject
CmsJsonUtil. mapJsonObject(JSONObject obj, java.util.function.Function<java.lang.Object,java.lang.Object> func)
Recursively walks through a JSON object and returns a copy of it, but transforms primitive values using the given function for the copy. -
Uses of JSONException in org.opencms.widgets
Methods in org.opencms.widgets that throw JSONException Modifier and Type Method Description protected void
CmsHtmlWidget. addEmbeddedGalleryOptions(JSONObject result, CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, java.util.Locale contentLocale)
Adds the configuration for embedded gallery widgets the the JSON object.protected abstract JSONObject
A_CmsAdeGalleryWidget. getAdditionalGalleryInfo(CmsObject cms, java.lang.String resource, CmsMessages messages, I_CmsWidgetParameter param)
Returns additional widget information encapsulated in a JSON object.protected JSONObject
CmsAdeDownloadGalleryWidget. getAdditionalGalleryInfo(CmsObject cms, java.lang.String resource, CmsMessages messages, I_CmsWidgetParameter param)
protected JSONObject
CmsAdeImageGalleryWidget. getAdditionalGalleryInfo(CmsObject cms, java.lang.String resource, CmsMessages messages, I_CmsWidgetParameter param)
protected JSONObject
CmsVfsImageWidget. getAdditionalGalleryInfo(CmsObject cms, java.lang.String resource, CmsMessages messages, I_CmsWidgetParameter param)
-
Uses of JSONException in org.opencms.workplace.editors.directedit
Methods in org.opencms.workplace.editors.directedit that throw JSONException Modifier and Type Method Description java.lang.String
CmsAdvancedDirectEditProvider. startDirectEditEnabled(CmsDirectEditParams params, CmsDirectEditResourceInfo resourceInfo)
Returns the start HTML for an enabled direct edit button. -
Uses of JSONException in org.opencms.xml.xml2json
Methods in org.opencms.xml.xml2json that throw JSONException Modifier and Type Method Description void
CmsResourceDataJsonHelper. addPathAndLink(JSONObject json)
Adds path and link fields for the resource to the given JSON object.void
CmsResourceDataJsonHelper. addProperties(JSONObject result)
Adds property data to the result object.JSONObject
CmsResourceDataJsonHelper. attributes()
Creates a JSON object with the attributes of the resource.JSONObject
CmsJsonRequest. getErrorsAsJson()
Returns the errors of this request as JSON.JSONObject
CmsResourceDataJsonHelper. properties(boolean inherited)
Creates a JSON object with the properties of the resource. -
Uses of JSONException in org.opencms.xml.xml2json.document
Methods in org.opencms.xml.xml2json.document that throw JSONException Modifier and Type Method Description java.lang.Object
CmsJsonDocumentContainerPage. getJson()
java.lang.Object
CmsJsonDocumentFolder. getJson()
java.lang.Object
CmsJsonDocumentList. getJson()
java.lang.Object
CmsJsonDocumentResource. getJson()
java.lang.Object
CmsJsonDocumentXmlContent. getJson()
java.lang.Object
I_CmsJsonDocument. getJson()
Returns the JSON document.protected void
CmsJsonDocumentResource. insertJsonResource()
If the request parameter "wrapper" is set, inserts information about this resource into the JSON document.protected void
CmsJsonDocumentResource. insertJsonResourceAttributes()
Inserts the resource attributes into this JSON document.protected void
CmsJsonDocumentResource. insertJsonResourceFile()
Inserts file type information into this JSON document.protected void
CmsJsonDocumentResource. insertJsonResourceParams()
Inserts information about the effective request parameters into this JSON document.protected void
CmsJsonDocumentResource. insertJsonResourcePathAndLink()
Inserts path and link information about this resource into this JSON document.protected void
CmsJsonDocumentResource. insertJsonResourceProperties()
Inserts the properties of this resource into the JSON document.protected void
CmsJsonDocumentXmlContent. insertJsonWrapper()
Inserts a wrapper with resource information into this JSON document. -
Uses of JSONException in org.opencms.xml.xml2json.renderer
Methods in org.opencms.xml.xml2json.renderer that throw JSONException Modifier and Type Method Description static JSONObject
CmsJsonRendererXmlContent. linkAndPath(java.lang.String link, java.lang.String path, CmsObject cms)
Builds a simple JSON object with link and path fields whose values are taken from the corresponding parameters.java.lang.Object
CmsJsonRendererXmlContent. render(CmsXmlContent content, java.util.Locale locale)
java.lang.Object
I_CmsJsonRendererXmlContent. render(CmsXmlContent content, java.util.Locale locale)
Converts the XML content for a single locale to a JSON objectstatic JSONObject
CmsJsonRendererXmlContent. renderAllLocales(CmsXmlContent content, I_CmsJsonRendererXmlContent renderer)
Helper method to apply renderer to all locales of an XML content, and put the resulting objects into a JSON object with the locales as keys.protected java.util.AbstractMap.SimpleEntry<java.lang.String,java.lang.Object>
CmsJsonRendererXmlContent. renderField(CmsXmlContentTree.Field field)
Renders a tree field as a field in the given JSON object.java.lang.Object
CmsJsonRendererXmlContent. renderNode(CmsXmlContentTree.Node node)
Renders a tree node as JSON.protected java.lang.Object
CmsJsonRendererXmlContent. renderSimpleValue(CmsXmlContentTree.Node node)
Renders a simple value (i.e.
-