Station AcademyActivity referenceRPAi StationConsultingAurora Academy
Academy/Station Academy/Level P/Project: structured report from JSON
Level P · Practical projects

Project: structured report from JSON

Intermediate project. Turn a JSON product list into a sorted CSV report with a calculated status column.

Intermediate≈ 30 min (estimate)Windows, macOSWorkflow engine-tested
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.csv with columns SKU, Name, Price, Stock and Status, sorted by name.

Steps

  1. Put products.json into the practice folder.
  2. Import products-report.station.json, check folder, and run.

How it works

  1. JSON Operation reads the file, and Parse Data $.items takes the list of products.
  2. Create DataTable makes an empty table with the five columns.
  3. In the loop, Get Key reads each field and an If Condition sets Status.
  4. Add Row adds a row from JSON text with variables: {"SKU": "{{sku}}", "Name": "{{pname}}", …}.
  5. 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.