Getting started
Rules Engine Widgets
JSON String Parser
8 min
purpose the json string parser node is used to convert json strings into structured data that can be accessed and used in subsequent workflow nodes it helps simplify data handling when dealing with api responses, text based payloads, or any variable containing raw json text problem statement apis or webhook triggers often return json data in string format , making it difficult to directly access or manipulate specific fields the json string parser node solves this issue by converting the json text into a structured javascript object , enabling easy data referencing across the workflow requirements before using the json string parser node ensure the input data is a valid json string the input must come from a previous node’s output or a variable reference if the json is malformed, the node will return a parsing error use cases parse json responses received from an api request node extract structured data from webhook payloads transform raw text based json into key value variables prepare data for conditional logic or display in ui components outcome after successful parsing, the node outputs structured data that can be directly referenced using variables in subsequent nodes how to use add the json string parser node drag and drop the json string parser node into your workflow this node should be connected after any node that outputs a json formatted string configure the input variable field description example input variable enter the variable containing your json string you can use workflow variables, previous node outputs, or dataflow references {{dataflow\ getbynodeid("variable 123")}} example input raw json string example "{\\"name\\" \\"alice\\",\\"email\\" \\"alice\@example com\\",\\"age\\" 25}" referenced variable example {{apiresponse body}} example output structured output { "name" "alice", "email" "alice\@example com", "age" 25 } result variable by default, the output is available in previous result helper