Interview practice question
Flattening nested JSON into a table
Data Engineering · Python · Beginner
An API returns nested JSON with customer info and a list of orders. How would you turn it into flat tables in Python?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Use pandas json_normalize for nested objects.
- Use record_path to explode lists like orders into rows.
- Use meta to carry parent fields like customer_id into child rows.
- Create separate tables for parent and child data.
- Keep the raw JSON too for reprocessing.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.