Station AcademyActivity referenceRPAi StationConsultingAurora Academy
Academy/Station Academy/Level 4/Working with JSON
Level 4 · Working with data

Working with JSON

Read JSON from a file or text, pick values with a simple JSON path, loop over arrays and write JSON back.

Intermediate≈ 18 min (estimate)Windows, macOSWorkflow engine-tested
Before this lesson
Working with tables
You will learn to
  • Read a JSON file
  • Use Parse Data with a path such as $.items[0].name
  • Loop over a JSON array
  • Read fields with Get Key
Sample files
json-products.station.json · products.json

JSON is the format most web services and many apps use for data.

Reading

JSON Operation Operation read loads a file; parse reads JSON from the JSON text field; write saves a variable as a JSON file. Invalid JSON fails with The text is not valid JSON.

Picking values

Parse Data with Format json and a Path/Query:

PathPicks
$.updatedthe value of updated
$.itemsthe whole items array
$.items[0].namethe name of the first item

Paths use dots and [index]; the first element is [0].

Looping over an array

A JSON array is a list, so a Loop of type collection walks through it. Each item is a JSON object; read its fields with Get Key.

The sample

json-products.station.json reads products.json, reports when it was updated and warns about products with zero stock.

Activities in this lesson

JSON Operation · Parse Data · Loop · Get Key · If Condition

Saved only in this browser.

Workflow engine-tested. The sample workflow was executed with the macOS Station engine (StationCore) without the user interface. UI steps are source-verified. Written against RPAi Station for macOS 0.1.0 (1) (RPAi_Station_2.0 @ port/macos 9864e96) and the Windows source (RPAi_Station_2.0 @ codex/native-station e68f16d). Reviewed 2026-11-30. UI labels may differ slightly in other versions; see versions and changes.