Skip to content

JSON Helper

JSON helper component provides actions for parsing and stringifying JSON.

Categories: helpers

Type: jsonHelper/v1


Actions

Convert from JSON String

Name: parse

Converts the JSON string to object/array.

Properties

NameLabelTypeControl TypeDescriptionRequired
sourceSourceSTRINGTEXTThe JSON string to convert to the data.true

JSON Example

{
"label" : "Convert from JSON String",
"name" : "parse",
"parameters" : {
"source" : ""
},
"type" : "jsonHelper/v1/parse"
}

Convert to JSON String

Name: stringify

Writes the object/array to a JSON string.

Properties

NameLabelTypeControl TypeDescriptionRequired
typeTypeSTRING
Options OBJECT, ARRAY
SELECTThe value type.null
sourceSourceOBJECT
Properties {}
OBJECT_BUILDERThe data to convert to JSON string.true
sourceSourceARRAY
Items []
ARRAY_BUILDERThe data to convert to JSON string.true

JSON Example

{
"label" : "Convert to JSON String",
"name" : "stringify",
"parameters" : {
"type" : "",
"source" : [ ]
},
"type" : "jsonHelper/v1/stringify"
}