After you set the property value to true, the empty XML elements that are not defined in XML but defined in XSD are rendered into empty JSON array or empty JSON objects when the XSD schema type is used. The output is displayed as follows:
If you set the property value to false or do not add the property, the output is displayed as follows:
You can configure the com.tibco.plugin.restjson.xml2json.namespaceIgnored property to ignore the namespace and prefix information when converting XML to JSON. The default value is
false, indicating that the namespace information is considered when rendering JSON files. The value
true indicates that the namespace information is ignored.
After you set the property value to true, the namespace is ignored. The output data is displayed as follows:
You can configure the com.tibco.plugin.restjson.xml2json.forwardSlashEscaping property to escape the forward slash when rendering JSON files. The default value is
false, indicating that the forward slash is kept when rendering JSON files. The value
true indicates that the forward slash is escaped: "
/" is converted to "
\/".
After you set the property value to true, the forward slash is escaped. The output data is displayed as follows:
You can configure the com.tibco.plugin.restjson.json.prettyPrint property to decide whether you want to format the output string. The default value is
true, indicating that you want to format the output string.
If you set the property value to true or do not add this property, the output data is displayed as follows:
"@attr_default": "newDefault",
"@attr_fixed": "attr_fixed_value",
"@attr_optional": "attr_required_optional",
"@attr_required": "attr_required_value",
If you set this property value to false, the output is displayed as follows: