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:
The default value in this field is the XSD schema type. |
Badgerfish | None | Specifies the following conversion rules:
XML attributes are converted into elements when the check box is not selected |
Output Json Style | None |
Specifies the method to render the data.
|
Use Empty Values For Null | None |
Select the check box to use empty values in the place of null in JSON. This option is applicable only for Objects and Arrays. This has no effect on primitive types. By default, the check box is not selected. |
- The "
com.tibco.plugin.restjson.xml2json.emptytonull
" property is newly added for the Rendor JSON activity. This property when set to true converts the "" (refers to empty string) and "{}" (refers to empty element or object) to the "null" value in the output generated by the Rendor JSON activity. - The "
com.tibco.bw.rest.renderjson.generic.parseDataTypes
" property is newly added for the Rendor JSON activity with generic schema type. On setting this property to true, numeric values are rendered without quotes, else the default behavior of enclosing all values within quotes is followed.
Description
Provide a short description for the Render JSON 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.
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 generated by this activity. For more information about error codes and the corrective action to take, see the TIBCO BusinessWorks Container Edition Error Codes.
Fault | Generated When.. |
---|---|
JSONRenderException | An exception occurred when rendering the data. |