Skip to content

Read JSON

Type: read-json  ·  Package: JSON Activities v1.0.0  ·  Output: object

Reads a JSON file and returns its contents already structured: a dictionary (object) or a list (array), navigable by its keys and indexes. You don’t need to parse text: the result is ready to use.

It reads the path file, interprets its JSON, and returns the structure. Then you access the data with expressions: dato["clave"], list[0], etc.

ParameterEditorDescription
pathexpressionJSON file path.

Ninguno.

Returns a object: a dictionary or a list, depending on the JSON.

Read JSON path = = asset("config.json") → output: config
Set Variable name = timeout value = = config["timeout"]
Log message = = "Primer item: " + str(config["items"][0]["nombre"])