1. Grouping Orders by Status
Data AnalystBackground
An analyst receives a daily JSON export of e-commerce orders containing hundreds of records with various statuses.
Problem
Needs to quickly group the orders by their status to review the distribution and export the result for a spreadsheet.
How to use
Paste the orders JSON into 'JSON Input', enter `groupBy(orders, "status")` in the 'JSONata Expression' field, and select 'CSV' as the Output Format.
Output Format: csvOutcome
The JSON array is transformed into grouped datasets by status and rendered as a CSV, ready for spreadsheet analysis.