Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Supported XML and JSON Conversion : Root Node Conversion Rule

Root Node Conversion Rule
TIBCO ActiveMatrix BusinessWorksTM Plug-in for REST and JSON provides the root node control. The following sections outline root node conversion rules:
Root Node Mapping from JSON to XML
The root node rules for converting data from JSON to XML are shown in Table 6.
Note: If JSON root does not match with output editor root and either Badgerfish is not selected or StAXON is selected, the root element of schema specified in Output tab in the Parse JSON activity is used as wrapper in the generated XML.
Note: If the root of the input JSON string does not match the root of the schema you specified in the Output tab, errors occur when running the Parse JSON activity.
Root Node Mapping from XML to JSON
The XML root node is preserved in the converted JSON string. If the Remove Root check box in the Configuration tab in the Render JSON activity is selected, the root is removed in the converted JSON string.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved