Start with the right JSON shape
The easiest input is an array of objects because each object maps naturally to one row.
[
{"id":1,"name":"Ada"},
{"id":2,"name":"Linus"}
]Flatten nested fields
If objects contain nested data, flatten those keys into columns. For example, user.name can become one CSV column.
Review the output
Before importing the CSV elsewhere, scan it for sparse columns, nested arrays turned into text, or other conversion choices that may need cleanup.