Skip to main content

PARSE_JSON

Parses JSON content from the text input and stores the resulting object in the flow context.

At a glance

  • Category Utils
  • Aliases PROCESS_PARSE_JSON
  • Version: 1.0.0
  • Applications: all
  • Scope: all

Config Options

NameDescriptionDefaultRequiredResolvedConstraintsConditional Rules
inOptional path or variable name to read the JSON string from the flowContext. If omitted, the default text input is used.NonefalsetrueNoneNone

Inputs

TypeDescriptionDefaultRequiredResolved
textJSON string to parse. If omitted, reads from the in parameter or default text input.Nonetruefalse

Outputs

TypeDescriptionOptional
objectThe parsed JSON object stored in the flow context.false
textThe original JSON text string (passthrough).false

Examples

Parse JSON from text input

- step: PARSE_JSON
in: "rawJson"

Parse JSON from REST response

- step: REST    
method: GET
url: 'https://my-api.com/v1/?...'
- step: PARSE_JSON
in : "{{ flowContext.text | safe }}"

See Also

General Resources: