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
Name | Label | Type | Control Type | Description | Required |
---|---|---|---|---|---|
source | Source | STRING | TEXT | The 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
Name | Label | Type | Control Type | Description | Required |
---|---|---|---|---|---|
type | Type | STRING OptionsOBJECT, ARRAY | SELECT | The value type. | null |
source | Source | OBJECT Properties{} | OBJECT_BUILDER | The data to convert to JSON string. | true |
source | Source | ARRAY Items[] | ARRAY_BUILDER | The data to convert to JSON string. | true |
JSON Example
{ "label" : "Convert to JSON String", "name" : "stringify", "parameters" : { "type" : "", "source" : [ ] }, "type" : "jsonHelper/v1/stringify"}