Flatten any JSON array of objects into a CSV file. Headers inferred from object keys.
Takes a JSON array of objects (or array of arrays) and writes CSV with the union of all object keys as headers. Nested objects/arrays inside values get JSON-stringified so the cell is at least parseable. Pick your delimiter to match whatever's consuming the file — Excel in some locales prefers semicolons.