JSON: Extract value (JSONPath)

action_json_extract · action · Utility · Available · v1.0.0

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).

⚙️ Configuration parameters

Fields shown in the editor when configuring the node. Generated directly from the NodeDefconfigFields.

FieldTypeRequiredDefaultDescription
sourceExpression
Sorgente JSON
expressionno
{{$node.api_response.json}}
Espressione che ritorna l'oggetto JSON sorgente. Se vuoto, usa l'input del nodo precedente.
path
Path JSONPath
expressionyes
$.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.
mode
Modalità output
enum
firstallcount
nofirst"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").
defaultValue
Valore di fallback (opzionale)
expressionno
(vuoto)
Se la path non matcha nulla, ritorna questo valore. Senza fallback, il nodo ritorna null.

⬆️ Node output

Fields available to downstream nodes via $node.<alias>.json.<field>:

  • value
  • matchCount

💡 Configuration example

JSON 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"
  }
}

🔗 Related nodes in the same category

Ready to use JSON: Extract value (JSONPath)?

Available now on all FlowForge plans. Try it free without a credit card.

Start freeBrowse all nodes