What JSON works best for CSV
- - Top-level arrays of objects are the easiest fit because each object becomes one row.
- - Nested objects can be flattened into stable column names such as `profile.role`.
- - Highly inconsistent structures still convert, but usually create wider tables and more cleanup work.
What to check before converting
- - Make sure the field set is stable enough for a table-like shape.
- - Decide whether arrays should stay stringified or be modeled separately.
- - Watch for commas, quotes, and line breaks if the CSV is heading into spreadsheet tools.