Uses of Class
org.opencms.json.JSONException
Packages that use 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
Methods in org.opencms.ade.configuration that throw JSONExceptionModifier and TypeMethodDescriptionprotected CmsContainerElementBeanCmsADEManager.elementFromJson(JSONObject data) Creates an element from its serialized data. -
Uses of JSONException in org.opencms.json
Methods in org.opencms.json that return JSONExceptionModifier and TypeMethodDescriptionJSONTokener.syntaxError(String message) Make a JSONException to signal a syntax error.Methods in org.opencms.json that throw JSONExceptionModifier 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.voidJSONTokener.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.booleanJSONArray.getBoolean(int index) Get the boolean value associated with an index.booleanJSONObject.getBoolean(String key) Get the boolean value associated with a key.doubleJSONArray.getDouble(int index) Get the double value associated with an index.doubleGet the double value associated with a key.intJSONArray.getInt(int index) Get the int value associated with an index.intGet 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.longJSONArray.getLong(int index) Get the long value associated with an index.longGet 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.voidJSONObject.merge(JSONObject jo, boolean overwrite, boolean deep) Merges the current JSON object with the given one, modifying the this.booleanJSONTokener.more()Determine if the source string still contains characters that next() can consume.charJSONTokener.next()Get the next character in the source string.charJSONTokener.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.charJSONTokener.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 StringJSONObject.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 JSONArrayCDL.rowToJSONArray(JSONTokener x) Produce a JSONArray of strings from a row of comma delimited values.static JSONObjectCDL.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.booleanSkip characters until past the requested string.charJSONTokener.skipTo(char to) Skip characters until the next character is the requested character.I_CmsJsonifable.toJson()Returns the JSON representation of this object.static JSONArrayCDL.toJSONArray(String string) Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names.static JSONArrayCDL.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 JSONArrayCDL.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 JSONArrayCDL.toJSONArray(JSONTokener x) Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names.static JSONArrayJSONML.toJSONArray(String string) Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform.static JSONArrayJSONML.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 JSONObjectXML.toJSONObject(String string) Convert a well-formed (but not necessarily valid) XML string into a JSONObject.static StringProduce a comma delimited text from a JSONArray of JSONObjects.static StringProduce 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 StringReverse the JSONML transformation, making an XML text from a JSONArray.JSONObject.toString(int indentFactor) Make a pretty printed JSON text of this JSONObject.static StringConvert a JSONObject into a well-formed, element-normal XML string.static StringConvert a JSONObject into a well-formed, element-normal XML string.JSONWriter.value(boolean b) Append either the valuetrueor the valuefalse.JSONWriter.value(double d) Append a double value.JSONWriter.value(long l) Append a long value.Append an object value.static StringJSONObject.valueToString(Object value) Make a JSON text of an Object value.static StringJSONObject.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.Constructors in org.opencms.json that throw JSONExceptionModifierConstructorDescriptionConstruct 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
Methods in org.opencms.jsp.search.config.parser that throw JSONExceptionModifier and TypeMethodDescriptionprotected voidCmsJSONSearchConfigurationParser.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.Constructors in org.opencms.jsp.search.config.parser that throw JSONExceptionModifierConstructorDescriptionConstructor 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
Constructors in org.opencms.jsp.userdata that throw JSONExceptionModifierConstructorDescriptionCmsUserDataRequestInfo(String data) Creates a new instance from the JSON data in a string. -
Uses of JSONException in org.opencms.loader
Constructors in org.opencms.loader that throw JSONException -
Uses of JSONException in org.opencms.ugc
Constructors in org.opencms.ugc that throw JSONExceptionModifierConstructorDescriptionCmsUgcValueTranformHandler(CmsObject cms, CmsResource resource) Creates the value transformer instance for the provided resource.Wraps the provided transformer configuration -
Uses of JSONException in org.opencms.ui.favorites
Methods in org.opencms.ui.favorites that throw JSONException -
Uses of JSONException in org.opencms.util
Methods in org.opencms.util that throw JSONExceptionModifier and TypeMethodDescriptionstatic ObjectRecursively walks through a JSON structure and returns a copy of it, but transforms primitive values using the given function for the copy.static JSONObjectCmsJsonUtil.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
Methods in org.opencms.widgets that throw JSONExceptionModifier and TypeMethodDescriptionprotected voidCmsHtmlWidget.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 JSONObjectA_CmsAdeGalleryWidget.getAdditionalGalleryInfo(CmsObject cms, String resource, CmsMessages messages, I_CmsWidgetParameter param) Returns additional widget information encapsulated in a JSON object.protected JSONObjectCmsAdeDownloadGalleryWidget.getAdditionalGalleryInfo(CmsObject cms, String resource, CmsMessages messages, I_CmsWidgetParameter param) protected JSONObjectCmsAdeImageGalleryWidget.getAdditionalGalleryInfo(CmsObject cms, String resource, CmsMessages messages, I_CmsWidgetParameter param) protected JSONObjectCmsVfsImageWidget.getAdditionalGalleryInfo(CmsObject cms, 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 JSONExceptionModifier 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
Methods in org.opencms.xml.xml2json that throw JSONExceptionModifier and TypeMethodDescriptionvoidCmsResourceDataJsonHelper.addPathAndLink(JSONObject json) Adds path and link fields for the resource to the given JSON object.voidCmsResourceDataJsonHelper.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
Methods in org.opencms.xml.xml2json.document that throw JSONExceptionModifier and TypeMethodDescriptionCmsJsonDocumentContainerPage.getJson()CmsJsonDocumentFolder.getJson()CmsJsonDocumentList.getJson()CmsJsonDocumentResource.getJson()CmsJsonDocumentXmlContent.getJson()I_CmsJsonDocument.getJson()Returns the JSON document.protected voidCmsJsonDocumentResource.insertJsonResource()If the request parameter "wrapper" is set, inserts information about this resource into the JSON document.protected voidCmsJsonDocumentResource.insertJsonResourceAttributes()Inserts the resource attributes into this JSON document.protected voidCmsJsonDocumentResource.insertJsonResourceFile()Inserts file type information into this JSON document.protected voidCmsJsonDocumentResource.insertJsonResourceParams()Inserts information about the effective request parameters into this JSON document.protected voidCmsJsonDocumentResource.insertJsonResourcePathAndLink()Inserts path and link information about this resource into this JSON document.protected voidCmsJsonDocumentResource.insertJsonResourceProperties()Inserts the properties of this resource into the JSON document.protected voidCmsJsonDocumentXmlContent.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 JSONExceptionModifier and TypeMethodDescriptionstatic JSONObjectCmsJsonRendererXmlContent.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 JSONObjectCmsJsonRendererXmlContent.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 ObjectCmsJsonRendererXmlContent.renderSimpleValue(CmsXmlContentTree.Node node) Renders a simple value (i.e.