JSON$

command · Also: JSON

Query a JSON object stored in a STRING (255). Missing keys, null, objects and arrays return “”. Invalid JSON is an error. JSON_PARSE and JSON_STRINGIFY$ map a TYPE.

JSON$(json$, path$)

json$ - JSON text in a string path$ - dotted keys and [n] array indexes, e.g. main.temp or

weather[0].description

Example:

PRINT VAL(JSON$(js$, "main.temp"))
PRINT JSON$(js$, "name")

Source: docs/help/json-dollar.txt inmmcore. On the computer, typeHELP JSON$.