This adapter converts a text document that contains structured data in JavaScript Object Notation (JSON) to an XML document, and vice versa converts an XML document to a UTF-8 encoded JSON document. The adapter uses a new XML format that allows better control of the generated JSON document.
This adapter replaces the outdated JSON converter.
Properties
|
|
Defines the operation executed by the function adapter Possible values:
|
Parameters
|
|
Information about handling object keys that are not enclosed in quotation marks Possible values:
|
|
|
Information on handling non-XML characters Possible values:
|
|
|
Return empty strings as Possible values:
|
|
|
Character encoding used Possible values: String with the character encoding used, e.g., |
The XML2JSON operation ignores white spaces at the beginning and end of the value for numeric and boolean values.
Status values
|
|
The operation was successful. |
|
|
The operation failed due to a technical error. |
Example
The following examples show JSON expressions and their respective counterparts in XML.
|
JSON |
XML |
|---|---|
|
JavaScript
|
XML
|
|
JavaScript
|
XML
|
|
JavaScript
|
XML
|
|
JavaScript
|
XML
|
|
JavaScript
|
XML
|
|
JavaScript
|
XML
|
|
JavaScript
|
XML
|
|
JavaScript
|
XML
XML
|
|
JavaScript
|
XML
|
|
JavaScript
|
XML
|
|
JavaScript
|
XML
|
|
JavaScript
|
XML
|
|
JavaScript
|
XML
|