Product details
This is simple implementation of the Transformation Module, that is able to convert JSON data to XML and backward. JSON transformation module does not have any graphical configuration, so all you need to do to use it is to:
- Download the transformation module to your XCS eiConsole using 'Free Download' button above.
- Define this module as a custom module for you working directory by putting the jar file to your '{WorkingDirectory}/lib' folder or by adding it using 'Defile Module Classes' dialog of the XCS eiConsole (menu Route -> Define Module Classes).
- Select 'JSON Transformer' in the list of the transformation modules.
The source data for transformation module is a JSON message, that may look like this:
{"menu": { "id": "file", "value": "File", "popup": { "menuitem": [ {"value": "New", "onclick": "CreateNewDoc()"}, {"value": "Open", "onclick": "OpenDoc()"}, {"value": "Close", "onclick": "CloseDoc()"} ] } }}
The output XML for this sample file would look this way:
<?xml version="1.0" encoding="UTF-8"?> <menu> <id>file</id> <popup> <menuitem> <value>New</value> <onclick>CreateNewDoc()</onclick> </menuitem> <menuitem> <value>Open</value> <onclick>OpenDoc()</onclick> </menuitem> <menuitem> <value>Close</value> <onclick>CloseDoc()</onclick> </menuitem> </popup> <value>File</value> </menu>
For the module implementation the free and open source library JSON in Java was used. This module is also open source and you are free to use it for any purposes. For example, you can use it as a tutorial on how to create a custom modules for the XCS eiConsole. You can download the ZIP archive with the Eclipse project of the JSON Transformation Module in the Documentation section on the right hand side of the page.
Release Details
This is the initial release of the JSON Transformation Module.