In this section:
Table of Contents maxLevel 12
Introduction
You can specify how you want to enter messages from the Input Mode menu in message tools and responders like Request, Response, and Payload. The Form JSON input mode provides a tree view of the JSON message so that you can construct and review JSON messages in a graphical interface. This mode is a JSON-focused version of the Form Input mode.
Building the Tree
If you paste a JSON message into the Literal view, then switch to Form JSON view, the Form JSON view will automatically be populated with the provided values and show a graphical representation of the message.
...
Info | ||||
---|---|---|---|---|
| ||||
With all message formats, including JSON, you can use the Specifically for JSON, a special notation is used for parameterizing a number or boolean field within a JSON message: If you forget to use this format for number or boolean fields and switch from Literal view to Form JSON view, you will see a warning dialog such as the following: |
Editing Values
You can specify values using the fixed, parameterized, auto, and script options available across the various tree views.
Note that Form Input options which are applicable to JSON are available from this view (with relevant terminology changes, such as null vs nil). This includes populating the entire tree with values in a data source, generating a CSV data source template, replacing specific elements with data source values, etc. For details, see Form Input.
Viewing the Literal JSON
Switching to the Literal view will apply the contents of Form JSON to the Literal view. Right-clicking JSON messages in the Literal view allows you to automatically "beautify" the JSON.
...