Read JSON activity

The Read JSON activity takes a JSON or XML message and parses it to a defined schema to generate an output structure that can be used by the orchestration. At runtime this activity parses the JSON message and generates equivalent XML that can be mapped to other Studio activities.

About this task

The input parameter of the Read JSON activity expects sample JSON or equivalent sample XML text. (Equivalent JSON or XML text is available from the JSON/REST API documentation). The input data must be a well formed JSON or XML message or the activity fails. If you do not use a schema, you must create a JSON variable (see the Variables tab) before you can use an XML schema in the Configure task. The variable can be defined by adding an XML schema to the project or by utilizing an existing variable. Once the JSON/REST sample is provided, the activity generates an equivalent structure for JSON/XML. The XML is mapped to the activity output which can be used by the orchestration. At runtime this activity consumes the JSON message and generates equivalent XML that can be mapped to other studio activities.

To add a Read JSON activity to an orchestration:

Procedure

  1. Create or open an orchestration. A graphical representation of the orchestration is displayed.
  2. Select the Activities tab and expand the Transform folder.
  3. Drag the Read JSON activity onto the orchestration. Place it to the right of an activity from which the orchestration will obtain the JSON data (for example, an FTP Poll Directory).
  4. Select the Read JSON activity and configure it as described in Read JSON activity.



Feedback | Notices


Timestamp icon Last updated: Wednesday, 15 June 2016


http://pic.dhe.ibm.com/infocenter/wci/v7r0m0/topic/com.ibm.wci.doc/Read_json_Activity.html