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


Chapter 4 Plug-in Tools : Using the JSON Tools

Using the JSON Tools
With TIBCO ActiveMatrix BusinessWorksTM Plug-in for REST and JSON, you can generate an XML schema file from a given JSON file by using the JSON tools. JSON tools use normal conversion rules. See Normal Conversion Rule for more information about the normal conversion rules.
Converting JSON Data to an XML Schema File
Perform the following steps to generate an XML schema file:
1.
2.
Select Tools > JSON Tools> Generate XML Schema from JSON from the TIBCO Designer menu. The Generate XML Schema from JSON dialog is displayed.
3.
Specify a JSON file that you want to convert to an XML schema file. Click Browse next to the JSON File field and then navigate to the directory where the JSON file is saved. The JSON file can be any text type.
Note: The file name cannot contain any of the following characters: /\:#
4.
Specify a JSON file encoding type in the JSON File Encoding field. The default value is UTF-8.
5.
6.
Click OK to generate the XML schema file.
After the conversion is completed successfully, a dialog box is displayed to inform you that the XML schema file is generated. The output XML schema file is saved in the new automatically created JSON_GEN_Schemas folder in the project directory.
If a JSON object contains an array, the elements in this JSON object are surrounded with xs:sequence XSD group type. Otherwise, the JSON object is surrounded with the xs:all type.

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