JSON

The JSON component is an operator component that allows users to manipulate and convert JSON objects. It can carry out the following tasks:

#Release Stage

Alpha

#Configuration

The component configuration is defined and maintained here.

#Supported Tasks

#Marshal

Convert JSON to a string

InputIDTypeDescription
Task ID (required)taskstringTASK_MARSHAL
JSON (required)jsonanyJSON input to be marshaled
OutputIDTypeDescription
JSON stringstringstringString representation of the JSON input

#Unmarshal

Convert a string to JSON

InputIDTypeDescription
Task ID (required)taskstringTASK_UNMARSHAL
String (required)stringstringJSON string to be unmarshaled
OutputIDTypeDescription
JSONjsonanyJSON object extracted from the string input

#jq

Process JSON through a jq command

InputIDTypeDescription
Task ID (required)taskstringTASK_JQ
JSON valuejson-valueanyJSON value (e.g. string, number, object, array...) to be processed by the filter
Filter (required)jq-filterstringFilter, in jq syntax, that will be applied to the JSON input
OutputIDTypeDescription
ResultsresultsarrayThe jq command results. Depending on the filter and the input JSON the type of each element may vary.

Last updated: 7/16/2024, 7:52:09 PM