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


Chapter 3 Supported XML and JSON Conversion : Badgerfish Conversion Rule

Badgerfish Conversion Rule
Badgerfish conversion is a comprehensive conversion for parsing and rendering data between JSON format and XML format. The mapping covers XML namespace, XML attribute, CDATA, and so on. But XML comments and XML prologs including XML declaration and DTD are ignored during the conversion.
To apply Badgerfish conversion rules, select the Badgerfish check box in the Configuration tab in the Render JSON activity or the Parse JSON activity.
If the Badgerfish check box is selected, ensure that the input data follows Badgerfish conversion rules.
Table 3 lists detailed Badgerfish conversion rules.
@namespaceKeyName
@AttributeKeyName
tagName#order
Note: When you set the com.tibco.plugin.restjson.json.111CompatibleMode property to true, if the Generic schema type is selected, #order is added after the tag name where the order variable guarantees that the JSON key is unique under the top level of a JSON object.
CDATA Text Content1
Note: Only the Generic schema type supports CDATA conversion.

1
If you convert JSON data to XML data and then convert back to JSON data with the XSD schema type, TIBCO ActiveMatrix BusinessWorks treats CDATA as a common text node.

 

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