SQL guide
Query JSON files with SQL
An event export can be easier to inspect as rows than as a long JSON document. Open the file as a source, look at a bounded sample, then filter the records you need.
Choose the file
Add a JSON, JSONL or NDJSON export to Workspace. Inspect the table and preview a few records.
Inspect field shapes
Check which fields are available directly as columns and whether values are nested, missing or inconsistently typed. The example assumes flat records.
Count by event type
Group the events by their type and sort by count. To isolate one group, add a WHERE clause before GROUP BY.
Example query
SELECT event_type, COUNT(*) AS event_count
FROM activity
GROUP BY event_type
ORDER BY event_count DESC;JSON Lines contains one JSON value per line. When fields vary across rows, check for nulls before assuming every event carries the same attributes.