JSON parser

[data/array/JSON parser]


Parses a JSON string to array. Examples: A.

  1. "[1,2]"@0 recieved via json

  2. [1,2]@0 sent via parsed

B.

  1. "{}]"@0 recieved via json

  2. "{}]"@0 sent via bounced


Keywords: string to array

Input ports

  • json: string

    Recieves JSON string. Example: "[1,2]"

Output ports

  • parsed: any[]

    Sends the parsed array. Example: [1,2]

  • bounced: string

    In case of error during parsing or when the result of the parseisng is not array it sends the json input string. Example: "{}]"

Last updated