Description
Extract a value or list of values from a JSON object using JSONPath expressions. Standard syntax: $.path.to.field, $.items[0].name, $..price (wildcard), $.items[?(@.qty>0)] (filter).
action_json_extract · action · Utility · Available · v1.0.0
Extract a value or list of values from a JSON object using JSONPath expressions. Standard syntax: $.path.to.field, $.items[0].name, $..price (wildcard), $.items[?(@.qty>0)] (filter).
Fields shown in the editor when configuring the node. Generated directly from the NodeDefconfigFields.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
sourceExpressionSorgente JSON | expression | no | — {{$node.api_response.json}} | Espressione che ritorna l'oggetto JSON sorgente. Se vuoto, usa l'input del nodo precedente. |
pathPath JSONPath | expression | yes | — $.orders[0].total | Espressione JSONPath standard. Esempi: • $.user.email — campo singolo • $.items[*].name — array di nomi • $..price — tutti i price ricorsivamente • $.items[?(@.qty>0)] — filter su attributo Niente segnaposti {{}} — qui passa SOLO il path. |
modeModalità output | enumfirstallcount | no | first | "first" (default): primo match (utile per campi singoli, es. $.user.email). "all": array di TUTTI i match (utile per estrazioni multiple, es. $..title). "count": numero di match (utile per validazioni "esiste almeno N elementi"). |
defaultValueValore di fallback (opzionale) | expression | no | — (vuoto) | Se la path non matcha nulla, ritorna questo valore. Senza fallback, il nodo ritorna null. |
Fields available to downstream nodes via $node.<alias>.json.<field>:
valuematchCountJSON snippet of the node as it appears in the workflow. Values are derived fromdefaultValue and from required parameters.
{
"id": "node-action_json_extract-1",
"defId": "action_json_extract",
"label": "JSON: Extract value (JSONPath)",
"config": {
"path": "$.orders[0].total",
"mode": "first"
}
}Available now on all FlowForge plans. Try it free without a credit card.
Start freeBrowse all nodes