JSON Converter (deprecated)
JSON Converter
: Converts a text document that contains structured data in the JavaScript Object Notation (JSON) into an XML document with a root element <JSON>
, and vice versa, it converts an XML document into a UTF-8-encoded JSON document.
This adapter is deprecated: Please use the JSON Converter 2.0 instead!
Please note when converting XML to JSON:
- Processing instructions, comments, entities, and CDATA sections in the input XML document cannot be converted.
- To create arrays in JSON out of XML element structures, add the attribute
class="array"
to the corresponding element. - To suppress empty arrays in JSON, add an attribute
class="object"
to the corresponding XML element, e. g.<element class="object"/>
will beelement:null
in JSON. - For more information to the used library, see http://json-lib.sourceforge.net/usage.html.
Properties
Operation | Defines the operation executed by the function adapter Possible values:
|
Parameters
Adapter | Main adapter class (do not change!) Possible values: |
classicMode | Defines that the same XML and JSON structures are used as in previous X4 releases. Possible values:
|