Working with Nested JSON
Use these when your raw data is deeply nested JSON and you need to flatten or navigate it before applying other transformations.
Select — SELECT
Zoom into a specific path in your JSON and use that as the starting point for everything that follows.
Use this when: an API response wraps the actual data inside nested objects like data.results and you want to work with just the inner array.
Before (full API response)
Code
After — selecting data.results as the new root
Code
Code
Extract — EXTRACT
Pull specific values out of a nested structure and combine them into a flat object.
Use this when: you need several values from different parts of a nested JSON response and want them in one flat record.
Before
Code
After — extracting temperature high, low, and humidity as top-level fields
Code
Code
Fields — FIELDS
Pick or omit a set of top-level keys from a JSON object or array of objects.
Use this when: your data is plain JSON (not yet in a table) and you want to keep or remove certain fields before any table-based transformations run.
Before
Code
After — picking only device_id and kwh
Code
Code
Set "mode": "omit" to remove the listed fields instead of picking them.