Uses of Class
org.opencms.json.JSONException
Package
Description
Contains the ade configuration classes.
Classes to create JSON objects and arrays for JavaScript in OpenCms.
API classes for the configuration parsers of the search form support provided for server-side Solr search.
Low-level functions to manage the loading of resources from the OpenCms VFS.
Utility functions for String manipulation and other often used tasks.
Contains the widget implementations, these are GUI elements used in editors and dialogs of the OpenCms workplace.
Used to control the generation of the HTML for the "direct edit" buttons.
-
Uses of JSONException in org.opencms.ade.configuration
Modifier and TypeMethodDescriptionprotected CmsContainerElementBean
CmsADEManager.elementFromJson
(JSONObject data) Creates an element from its serialized data. -
Uses of JSONException in org.opencms.json
Modifier and TypeMethodDescriptionJSONTokener.syntaxError
(String message) Make a JSONException to signal a syntax error.Modifier and TypeMethodDescriptionJSONObject.accumulate
(String key, Object value) Accumulate values under a key.Append values to the array under a key.JSONWriter.array()
Begin appending a new array.void
JSONTokener.back()
Back up one character.JSONWriter.endArray()
End an array.JSONWriter.endObject()
End an object.JSONArray.get
(int index) Get the object value associated with an index.Get the value object associated with a key.boolean
JSONArray.getBoolean
(int index) Get the boolean value associated with an index.boolean
JSONObject.getBoolean
(String key) Get the boolean value associated with a key.double
JSONArray.getDouble
(int index) Get the double value associated with an index.double
Get the double value associated with a key.int
JSONArray.getInt
(int index) Get the int value associated with an index.int
Get the int value associated with a key.JSONArray.getJSONArray
(int index) Get the JSONArray associated with an index.JSONObject.getJSONArray
(String key) Get the JSONArray value associated with a key.JSONArray.getJSONObject
(int index) Get the JSONObject associated with an index.JSONObject.getJSONObject
(String key) Get the JSONObject value associated with a key.long
JSONArray.getLong
(int index) Get the long value associated with an index.long
Get the long value associated with a key.JSONArray.getString
(int index) Get the string associated with an index.Get the string associated with a key.Make a string from the contents of this JSONArray.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.JSONTokener.next
(int n) Get the next n characters.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).XMLTokener.nextContent()
Get the next XML outer token, trimming whitespace.XMLTokener.nextEntity
(char a) Return the next ENTITY.XMLTokener.nextMeta()
Returns the next XML meta token.JSONTokener.nextString
(char quote) Return the characters up to the next close quote character.JSONTokener.nextTo
(char d) Get the text up but not including the specified character or the end of line, whichever comes first.Get the text up but not including one of the specified delimiter characters or the end of line, whichever comes first.XMLTokener.nextToken()
Get the next XML Token.JSONTokener.nextValue()
Get the next value.static String
JSONObject.numberToString
(Number n) Produce a string from a Number.JSONWriter.object()
Begin appending a new object.JSONArray.put
(double value) Append a double value.JSONArray.put
(int index, boolean value) Put or replace a boolean value in the JSONArray.JSONArray.put
(int index, double value) Put or replace a double value.JSONArray.put
(int index, int value) Put or replace an int value.JSONArray.put
(int index, long value) Put or replace a long value.Put or replace an object value in the JSONArray.JSONArray.put
(int index, Collection<Object> value) Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.Put a key/boolean pair in the JSONObject.Put a key/double pair in the JSONObject.Put a key/int pair in the JSONObject.Put a key/long pair in the JSONObject.Put a key/value pair in the JSONObject.JSONObject.put
(String key, Collection<Object> value) Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.Put a key/value pair in the JSONObject, where the value will be a JSONObject which is produced from a Map.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
Skip characters until past the requested string.char
JSONTokener.skipTo
(char to) Skip characters until the next character is the requested character.I_CmsJsonifable.toJson()
Returns the JSON representation of this object.static JSONArray
CDL.toJSONArray
(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, 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
(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.JSONObject.toJSONArray
(JSONArray names) Produce a JSONArray containing the values of the members of this JSONObject.JSONArray.toJSONObject
(JSONArray names) Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.static JSONObject
XML.toJSONObject
(String string) Convert a well-formed (but not necessarily valid) XML string into a JSONObject.static String
Produce a comma delimited text from a JSONArray of JSONObjects.static String
Produce a comma delimited text from a JSONArray of JSONObjects using a provided list of names.JSONArray.toString
(int indentFactor) Make a pretty printed JSON text of this JSONArray.static String
Reverse the JSONML transformation, making an XML text from a JSONArray.JSONObject.toString
(int indentFactor) Make a pretty printed JSON text of this JSONObject.static String
Convert a JSONObject into a well-formed, element-normal XML string.static String
Convert a JSONObject into a well-formed, element-normal XML string.JSONWriter.value
(boolean b) Append either the valuetrue
or the valuefalse
.JSONWriter.value
(double d) Append a double value.JSONWriter.value
(long l) Append a long value.Append an object value.static String
JSONObject.valueToString
(Object value) Make a JSON text of an Object value.static String
JSONObject.valueToString
(Object value, int indentFactor, int indent) Make a pretty printed JSON text of an object value.Write the contents of the JSONArray as JSON text to a writer.Write the contents of the JSONObject as JSON text to a writer.ModifierConstructorDescriptionConstruct a JSONArray from an array.Construct a JSONArray from an array with a bean.Construct a JSONArray from a source JSON text.Construct a JSONArray from a JSONTokener.JSONObject
(String source) Construct a JSONObject from a source JSON text string.JSONObject
(String source, boolean sorted) Construct a JSONObject from a source JSON text string, optionally sorted.JSONObject
(JSONObject jo, String[] names) Construct a JSONObject from a subset of another JSONObject.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
Modifier and TypeMethodDescriptionprotected void
CmsJSONSearchConfigurationParser.init
(String configString, I_CmsSearchConfiguration baseConfig) Initialization that parses the String to a JSON object.CmsJSONSearchConfigurationParser.parseFacetQueryItems
(JSONObject queryFacetObject) Parses the list of query items for the query facet.CmsJSONSearchConfigurationParser.parseMandatoryStringValues
(JSONObject json, String key) Helper for reading a mandatory String value list - throwing an Exception if parsing fails.ModifierConstructorDescriptionConstructor taking the JSON as String.CmsJSONSearchConfigurationParser
(String json, I_CmsSearchConfiguration baseConfig) Constructor taking the JSON as String.CmsSimpleSearchConfigurationParser
(CmsObject cms, CmsConfigurationBean config, String additionalParamJSON) Constructor. -
Uses of JSONException in org.opencms.jsp.userdata
ModifierConstructorDescriptionCmsUserDataRequestInfo
(String data) Creates a new instance from the JSON data in a string. -
Uses of JSONException in org.opencms.loader
-
Uses of JSONException in org.opencms.ui.favorites
-
Uses of JSONException in org.opencms.util
Modifier and TypeMethodDescriptionstatic Object
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, Function<Object, 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
Modifier and TypeMethodDescriptionprotected void
CmsHtmlWidget.addEmbeddedGalleryOptions
(JSONObject result, CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) Adds the configuration for embedded gallery widgets the the JSON object.protected abstract JSONObject
A_CmsAdeGalleryWidget.getAdditionalGalleryInfo
(CmsObject cms, String resource, CmsMessages messages, I_CmsWidgetParameter param) Returns additional widget information encapsulated in a JSON object.protected JSONObject
CmsAdeDownloadGalleryWidget.getAdditionalGalleryInfo
(CmsObject cms, String resource, CmsMessages messages, I_CmsWidgetParameter param) protected JSONObject
CmsAdeImageGalleryWidget.getAdditionalGalleryInfo
(CmsObject cms, String resource, CmsMessages messages, I_CmsWidgetParameter param) protected JSONObject
CmsVfsImageWidget.getAdditionalGalleryInfo
(CmsObject cms, String resource, CmsMessages messages, I_CmsWidgetParameter param) -
Uses of JSONException in org.opencms.workplace.editors.directedit
Modifier and TypeMethodDescriptionCmsAdvancedDirectEditProvider.startDirectEditEnabled
(CmsDirectEditParams params, CmsDirectEditResourceInfo resourceInfo) Returns the start HTML for an enabled direct edit button. -
Uses of JSONException in org.opencms.xml.xml2json
Modifier and TypeMethodDescriptionvoid
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.CmsResourceDataJsonHelper.attributes()
Creates a JSON object with the attributes of the resource.CmsJsonRequest.getErrorsAsJson()
Returns the errors of this request as JSON.CmsResourceDataJsonHelper.properties
(boolean inherited) Creates a JSON object with the properties of the resource. -
Uses of JSONException in org.opencms.xml.xml2json.document
Modifier and TypeMethodDescriptionCmsJsonDocumentContainerPage.getJson()
CmsJsonDocumentFolder.getJson()
CmsJsonDocumentList.getJson()
CmsJsonDocumentResource.getJson()
CmsJsonDocumentXmlContent.getJson()
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
Modifier and TypeMethodDescriptionstatic JSONObject
CmsJsonRendererXmlContent.linkAndPath
(String link, String path, CmsObject cms) Builds a simple JSON object with link and path fields whose values are taken from the corresponding parameters.CmsJsonRendererXmlContent.render
(CmsXmlContent content, Locale locale) I_CmsJsonRendererXmlContent.render
(CmsXmlContent content, 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 AbstractMap.SimpleEntry<String,
Object> CmsJsonRendererXmlContent.renderField
(CmsXmlContentTree.Field field) Renders a tree field as a field in the given JSON object.CmsJsonRendererXmlContent.renderNode
(CmsXmlContentTree.Node node) Renders a tree node as JSON.protected Object
CmsJsonRendererXmlContent.renderSimpleValue
(CmsXmlContentTree.Node node) Renders a simple value (i.e.