Turn JSON into spreadsheet rows
Turns a JSON array of objects into rows with a header row, ready to paste into Google Sheets or Excel, or to save as CSV. Every key of every object gets a column, so a record with one extra field adds a column instead of losing it, and a nested object becomes dotted columns like address.city. A JavaScript object with unquoted names, single quotes or comments works too.