TIBCO ActiveMatrix BusinessWorksTM Plug-in for REST and JSON supports different implementation mechanisms when converting between JSON data and XML data based on the XSD.
This section uses an example to show the output of an implementation mechanism varies with the value of com.tibco.plugin.restjson.json.111CompatibleMode property. It also specifies how to select an implementation mechanism by configuring this property.
For example, when paring JSON data to XML data based on the provided XSD schemas, if you set the com.tibco.plugin.restjson.json.111CompatibleMode property to true, the attribute information in JSON is converted to a common XML element.
Figure 33 shows an example of input data, and
Figure 34 shows an example of output data.
In the selected XSD file, "age" is defined as an attribute. When you set the property to
false, the JSON pairs
"age": "30" are converted to XML attributes and namespaces are added according to selected XSD file as shown in
Figure 35.
You can select an implementation mechanism supported in different product versions by configuring the com.tibco.plugin.restjson.json.111CompatibleMode property. The default value of this property is
false indicating that the current version of implementation mechanism is adopted.