Skip to main content

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​

InputTypeRequiredDefaultWhat it is
ValueAnyNoDictionary, List or JSON text (or use an open JSON session).
PathsAnyYesDictionary 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.
SessionStringNoWork on the document of this JSON session (Start session) instead of a value; changes stay in the session until End session saves them.

Outputs​

OutputTypeWhat it is
valuesDictionaryName to value; missing paths give empty values.
missingListNames whose path does not exist.