Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Below is the JSONConverter Component Property Sheet (CPS) with Expert Properties (Click icon) enabled.

Image Modified
Figure 1: JSONConverter CPS with Expert Properties enabled

...

This property is used to convert JSON to XML.

Image Modified
Figure 2: Component configuration - To convert JSON to XML

...

Output port Schema can be provided here using schema editor which opens upon clicking the ellipsis  button. It can be used to generate sample output XML for the component.

Image Modified
Figure 3: Output XSD Schema dialog box

...

If the property value is 'no' it is nothing but to convert XML to JSON

Image Modified
Figure 4: Component configuration - To convert XML to JSON

...

Input port Schema can be provided here using the schema editor which opens upon clicking the ellipsis  button. It can be used to generate sample input XML for the component. 

Image Modified
Figure 5: Input XSD Schema dialog box

...

Whether to skip Root Element while converting from XML to JSON. Determines whether the resulting JSON will start off with a top-most element whose name matches the XML root element.

Info
titleExample

Consider the XML string below:

Code Block
<a><x>1</x><y>2</y></a>

If the property is set to

  • "yes", the string is translated as:

    Code Block
    {"x": "1", "y": "2"}
  • "no", the string is translated as:

    Code Block
    { "a":  { "x": "1", "y": "2" }}

 

Functional Demonstration

Scenario1: JSON to XML

...

Adaptavist ThemeBuilder EngineAtlassian Confluence