- Before this lesson
- Working with JSON, Working with tables
- You will learn to
- Read JSON and loop over its items
- Build a DataTable row by row
- Write a structured CSV report
- Sample files
- products-report.station.json · products.json
Scenario. A system gives you product data as JSON. Colleagues want a spreadsheet with a clear Status column showing what to reorder.
Input and output
- Input:
products.json(synthetic) in the practice folder. - Output:
products-report.csvwith columns SKU, Name, Price, Stock and Status, sorted by name.
Steps
- Put
products.jsoninto the practice folder. - Import
products-report.station.json, checkfolder, and run.
How it works
- JSON Operation reads the file, and Parse Data
$.itemstakes the list of products. - Create DataTable makes an empty table with the five columns.
- In the loop, Get Key reads each field and an If Condition sets Status.
- Add Row adds a row from JSON text with variables:
{"SKU": "{{sku}}", "Name": "{{pname}}", …}. - Sort Table sorts by Name, and CSV Operation write saves the file.
Activities in this lesson
JSON Operation · Parse Data · Create DataTable · Loop · Get Key · If Condition · Add Row · Sort Table · CSV Operation
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.