Get several node values
Read several values at once into a Dictionary, e.g. {"id": "order.id", "email": "customer.email"}, each turned into a type if you want.
Command in the JSON toolkit · id ooa.json/get_nodes · 3 inputs (1 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Value | Any | No | Dictionary, List or JSON text (or use an open JSON session). | |
| Paths | Any | Yes | Dictionary of result name to path, or a list of paths (each path is then its own name). A path may instead be {"path": "order.total", "type": "Number"} to convert the value to String, Number, DateTime or Boolean. | |
| Session | String | No | Work on the document of this JSON session (Start session) instead of a value; changes stay in the session until End session saves them. |
Outputs
| Output | Type | What it is |
|---|---|---|
| values | Dictionary | Name to value; missing paths give empty values. |
| missing | List | Names whose path does not exist. |