Skip to main content

Parse JSON

ComponentTypeDescription
imgParse JSON🔀 actionParse a JSON into placeholder values

The Parse JSON component allows you to pass in a JSON object and then parse it into placeholders that can used in the rest of the workflow. It is useful for iterating through parts of a larger or more complex JSON input that may be coming from the Webhook Import or API Request and Response components.

important

The Parse JSON can only parse JSON objects. It cannot parse JSON arrays directly such as:

[{"key":"value 1"},{"key":"value 2"}]

If you need to parse a JSON array, we recommend you use the Run Code component.

Set the placeholder​

To use the Parse JSON component, firstly set the placeholder that will contain the JSON to be parsed.

img

Copy and paste a sample to map​

Next, upload a sample of the JSON to be parsed so placeholders can be mapped. Copy and paste the sample JSON into the textfield and then click upload to map.

img

Select the placeholders required​

The uploaded sample JSON will be mapped to create a list of possible placeholders that can be extracted from its structure. You can select which placeholders you would like to pass onto the next component, as well as rename the placeholders as required.

img