PilotFish Interface Exchange (PIE)

A marketplace for eiConsole (IDE) interface templates, components and industry bundles
eiConsole IDE 90-Day Free Trial!
Offered by
Licensor contacts
Associated Industry
All
Associated Application
All
Prerequisites
The eiConsole IDE is highly recommended to support graphical development of interfaces for deployment to the eiPlatform runtime The eiPlatform is required to run in production interfaces configured using the eiConsole
Version
0.1
Release Date
November 22, 2011
Resource Type
Custom Module Extension

Product details

JSON Transformation Module

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:

  1. Download the transformation module to your XCS eiConsole using 'Free Download' button above.
  2. 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).
  3. 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.