Search Results

Render JSON

Render JSON activity takes XML data and renders it as a JSON string.

General

The General tab has the following fields.

Field Literal Value/Process Property/Module Property Description
Name None The name to be displayed as the label for the activity in the process.
Schema Type None Specifies a schema type for the output data. The following are the supported schema types:
  • Generic : converts an XML string to a JSON string
  • XSD : converts an XML string to a JSON document defined using a schema specified in the Output Editor.

The default value in this field is the XSD schema type.

Badgerfish None Specifies the following conversion rules:
  • Select this check box for converting JSON data to XML data with the mapping of XML namespace, XML attribute, CDATA, and so on.
  • Do not select this check box if you want normal conversion rules for mapping data from JSON to XML.
Output Json Style None

Specifies the method to render the data.

  • None : Select this option to exclude the root element in the Json string.
  • Json with Root : Select this option to include the root element in the input Json string.
  • Anonymous Array : Select this option to return a Json array without the parent element, where the root element has exactly one child of the type Array.

Description

Provide a short description for the activity.

Input Editor

From the Input Editor tab, you can define or reference an XML schema for the activity input. You can also use the BW JSON Utils tool to generate an XML schema file with a specified JSON file. See BW JSON Utils for more information.

Input

The input data for the Render JSON activity is in the XML format. The schema type of the XML data varies depending on the schema type you specified in the Schema Type field on the General tab.

Output

The Output tab contains the following field.

Field Description
jsonString The translated data in JSON string format.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more information about error codes and the corrective action to take.

Fault Thrown when...
JSONRendererException An exception occurred when rendering the data.