Parse

This function card parses a JSON string into a typed field, such as an object or a list, that you can use in subsequent functions. JSON is a standard format used by web developers to send data to and from RESTful web services.

This function is the inverse of Stringify.

If the input string is not in a valid JSON format, you will encounter a runtime error. Be sure also to set the type of the output field to match the actual type represented in the string. Otherwise you may encounter runtime errors.

For example, if your input is the string,

{"a":"this","b":"that","c":"the other"}

then you should set the output type to object. You will get an object with the three keys a, b, and c.

If your input is the string,

["this is the first","this is the second","this is the third"]

then you should set the output type to be a list of text.

Input

Field Definition Type Required
string String of JSON to parse to a type. String TRUE

Output

Field Definition Type
output JSON value parsed into a specified type. String

Related topics

Functions in Workflows

Elements of Workflows