Write JSON activity

The Write JSON activity takes a structure equivalent to JSON as input and outputs a string in the JSON format containing the data held in the complex variable. This string can then be written to a file or posted using HTTP.

About this task

The JSON string is returned as an output parameter. (This is only applicable if you use a schema). The orchestration data must come from a complex variable which is indicated by the XML icon on the Variables tab. You configure the activity by pasting a JSON or XML sample message (available in the JSON/REST API documentation) in the Configure panel. This generates a compatible input structure for mapping the input data, which is then converted to a JSON message.

To add a Write JSON activity to an orchestration:

Procedure

  1. Create or open an orchestration. For more information, see Building an orchestration. A graphical representation of the orchestration is displayed.
  2. Select the Activities tab and expand the Transform folder.
  3. Drag the Write JSON activity onto the orchestration.
  4. Select the Write JSON activity and configure it as described in Write JSON activity configuration.



Feedback | Notices


Timestamp icon Last updated: Wednesday, 15 June 2016


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