X

JSON:

Jump to a Section
  • Parse

    This function parses a JSON string into a typed field - such as an object or a list - that you can use in subsequent functions. It’s the inverse of the Stringify function.

    The input string must be valid JSON format or you will encounter a runtime error. Be sure 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 3 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.

    If you’re not familiar with JSON, you can read about it at Wikipedia’s JSON article.  It is a standard format used by web developers to send data to and from RESTful web services.

    Input Fields

    • string:  the string of JSON to parse

    Output Fields

    • output:  the parsed JSON value, in the type you have specified
  • Stringify

    This function converts a typed value - such as an object or a list - into a JSON string. It’s the inverse of the Parse function.

    You can read more about JSON at Wikipedia’s JSON article. It is a standard format used by web developers to send data to and from RESTful web services.

    Input Fields

    • object:  the value to stringify.  It can be any JSON type, i.e. it can be a list of objects, or a list of text, or just a number… just make sure to set the type correctly

    Output Fields

    • output:  a string containing the stringified JSON value