![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
You can configure the com.tibco.plugin.restjson.json2xml.jsonroot property to add the JSON root name. If you do not set the property, <JSON> is used as the default root. This property is only applicable for the Generic schema type.
1.
2. Open the designer.tra file.
3. Add the com.tibco.plugin.restjson.json2xml.jsonroot property in the file and set the root value.When you set the root name, for example, JsonRootName, the output data is displayed as follows:If you do not add this property, or do not assign a value to this property, JSON is used as the default root name.When you parse the JSON files, the special character is ignored by default. If you want to convert the special characters to ASCII code, you can configure the com.tibco.plugin.restjson.json2xml.specialIgnored property. This property is applicable for the Generic and the XSD schema types.
1.
2. Open the designer.tra file.
3. Add the com.tibco.plugin.restjson.json2xml.specialIgnored property in the file and set its value to false.If you do not add this property or set the value to true, the output data is displayed as follows:If set the value to false, the output is displayed as follows:You can configure the com.tibco.plugin.restjson.json2xml.preferNamespaceFromSchema Boolean property to prefer namespace from schema. If you do not set this property to true, the default value is false.
1.
2. Open the designer.tra file.
3. Add the com.tibco.plugin.restjson.json2xml.preferNamespaceFromSchema property in the file and set the boolean value.Output editor root element: ’user_root’When property com.tibco.plugin.restjson.json2xml.preferNamespaceFromSchema is set to true, the output data is displayed as follows:When property com.tibco.plugin.restjson.json2xml.preferNamespaceFromSchema is set to false, the output data is displayed as follows:
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |