JSON Parser Nodes
APIs typically return data in JSON format, which can be complex and nested. The JSON Parser Node is a utility that allows you to surgically extract specific pieces of information from a JSON object.
Configuration
Input
Connect a Fetch Node (that returns JSON) or a Text Node (containing valid JSON string) to the input handle.
Path (Dot Notation)
Use standard “dot notation” to navigate the JSON structure and pinpoint the data you want.
Examples:
title-> Extracts the value of the “title” key at the root.user.name-> Extracts the “name” from the “user” object.items[0]-> Extracts the first item from the “items” array.items[0].description-> Extracts the description of the first item.
Output
The node outputs the extracted value as a string. If the extracted value is an object or array, it will be stringified.
Workflow Example
- Fetch Node: Calls a weather API.
- JSON Parser Node: Path set to
current.temp_c. - Text Node: Input
The temperature is currently {{temp}} degrees., connected to the parser.