Flatten an array of JSON objects into a CSV table you can open in a spreadsheet. Column headers are collected from across every object, so records with differing fields still line up correctly, and values needing quotes or escaping are handled properly.
CSV is inherently a flat table, so the input has to be a top-level array of objects. If your data is wrapped in something like {"results": [...]}, extract that inner array first.
They are serialised as JSON text inside the cell, since CSV has no way to express nesting. Flatten your structure beforehand if you need those values in separate columns.
No. Headers are collected across every object in the array, and any record missing a key gets an empty cell for that column.
Yes. Values containing commas, quotes or line breaks are wrapped in double quotes, with internal quotes doubled, following the standard CSV convention.