JSON data export to Excel
📥 Conversion settings
💡 Instructions for use
- Arrays of objects (one object per row) are best for export: field names automatically become table headers, and fields are ordered by first occurrence in each row.
- The two-dimensional array (one array per row) is spread out in the original order, and the first row is usually used as the field name row; select "No" to not write the field name row.
- When some rows have fewer fields than other rows, the missing positions are filled with blanks or zeros according to the "How to handle missing fields" setting to avoid misalignment of the entire column.
- It is recommended to preview before exporting: the preview and exported files use the same data. If the preview is correct, the file content will be consistent.
- Excel is downloaded in xlsx format and can be opened directly with spreadsheet software; CSV is suitable for importing into a database or script processing.
- The pasted content is only parsed and generated in the browser, and is not uploaded or saved; you need to paste it again after refreshing the page.
JSON data export to Excel converts raw data directly into deliverable tables, eliminating the need for manual copying and pasting.
Manual copy and paste problem
When manually pasting interface data into a table, the most common results are column misalignment and missing rows: when there are too many fields, not all of them can be seen, it is easy to select more or less in the copied range, and it is difficult to check which column corresponds to which field after pasting. After tool conversion, the table header is automatically generated from the field names, the number of rows strictly corresponds to the source data, and the risk of errors is transferred from manual operations to an automatic process that can be reviewed.
Two little habits before and after exporting
- Before exporting, check the number of rows and columns given in the result area and compare it with the size of the source data.
- After exporting, archive the file together with the original JSON, so you don’t have to readjust the interface if you need to recalculate it in the future.
- When personal information is involved, confirm whether the data can appear in the table file before exporting.
Before exporting, it is recommended to confirm that the header is the field name and not the data. Most downstream programs rely on the first row as the column name. If the original data does not have field names, you should manually add a row before exporting.
It is recommended that the exported file be named according to the content plus date, such as the interface name plus the export date, to avoid mixing multiple versions. When archiving is required, it is recommended to retain the original data so that it can be regenerated in a new format in the future.
It is recommended to avoid Chinese characters and spaces in the export file name, as some systems are prone to problems when reading.
After exporting, archive the original JSON together to facilitate future review and recalculation.
📖 Glossary
- JSON
- A universal data exchange format that uses curly brackets to represent objects and square brackets to represent arrays. It is commonly used in front-end and various interfaces.
- object array
- It is shaped like an array with one object in each row. The key of the object is the field name. It is most suitable to be directly converted into a table.
- two-dimensional array
- Each element is also an array of arrays. The position of the element determines which column it falls in. You need to manually confirm the meaning of the column.
- Field name row
- The first row of the table is used to describe the meaning of each column. The field names of the object array will automatically become this row.
- worksheet
- A table in an Excel file. One file can contain multiple sheets. This tool exports one sheet at a time.
- xlsx
- The current Excel file format supports multiple worksheets, styles and data types, and is compatible with mainstream spreadsheet software.
- CSV
- Comma-separated plain text table format, small in size and easy to be processed by scripts, but does not retain styles and types.
- key order
- The order in which the fields are arranged from left to right in the table is determined by this tool based on the first occurrence in each row.
- Nested objects
- When an object or a multi-layered array is embedded in an object, the entire content will be written into the cell as text during export.
- Missing fields
- For fields that are not found in some rows, leave them blank or fill them with zeros when exporting to avoid misalignment of the entire row.
🔗 All keywords and tutorials
❓ FAQ
- What to do if the number of rows is inconsistent with the source data?
- First check whether elements at the array level are missed or truncated when pasted; the number of rows given in the result area can be compared with the source data.
- Can I export data from multiple interfaces??
- You can convert in batches and then merge them, or aggregate multiple tables in a worksheet software.