Turning nested JSON into a table people can use
APIs speak JSON, and most people who need the data work in spreadsheets. Converting one to the other sounds simple, but JSON is a tree and a CSV file is a flat grid. Every converter has to decide where each nested value goes. The choices it makes decide whether the result can be sorted and filtered, or whether it is a grid of unreadable cells.
This tool puts each record on its own row and spreads nested objects into columns named with dots. A record with an address object gives the columns address.street, address.city and address.zip. Those are real columns, so you can sort by city or filter by zip code in Excel or Google Sheets. The columns are the union of every record's keys, in the order they first appear, so a key that only some records have still gets a column. Records without it leave the cell empty, which keeps every row aligned.
Arrays are treated differently on purpose. A record with tags ["red", "blue"] keeps the list in one cell as JSON text. The other common choice, columns tags[0], tags[1], tags[2], makes the width of the file depend on the record with the longest list, and puts the same kind of value in many columns. You cannot filter that sensibly. If you need one row per tag, it is better to reshape the data on purpose than to have a converter guess.
The note under the result reports three problems that converters usually hide. If two keys would produce the same column name, the first is kept and the clash is named. If a cell starts with =, +, - or @, spreadsheets may read it as a formula, which is a known way to attack people who open exported files; the tool counts those cells so you can check them. And if a whole number is larger than 9007199254740991, it may have lost digits when the JSON was read, because a JavaScript number cannot hold it exactly. Quote such IDs in the source and they survive as text.
Choose comma, semicolon or tab to match the program that will read the file. Many European versions of Excel expect semicolons, because the comma is their decimal mark. The Excel option adds a byte order mark, which tells Excel on Windows that the file is UTF-8, so names with accents are not garbled. Everything runs in your browser on up to 5 MB of JSON, so customer data from an API export never leaves your device.