The City Inside the JSON
The City Inside the JSON
The station receiver drops order payloads into a single JSON column — nobody promised it a schema. For each payload_log row output log_id and the user’s city from the user.city path as city, using the scalar JSON accessor. Order by log_id.
JSON data
Some data is stored inside JSON documents rather than separate columns: payload_log.payload. You'll need to extract the values from the documents. Learn how in the JSON and Nested Data course.
Any row order
Expected output columns:
log_idcityShowing the first 3 rows of the sample — the full sample comes with Premium
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign inFocus radio
Paused · SomaFM · Fluid