How to Read a JSON Array as a Table: Sort, Filter and Export
Turn API responses and JSON Lines exports into a sortable, filterable table, pick the right array by path, open nested cells and export CSV or Excel.

JSON is easy for programs and slow for people. When an API returns three hundred orders, the questions you have are spreadsheet questions: which orders are refunded, which country spends most, which records are missing a field. Reading braces line by line will not answer them. A table will. This guide shows how to get from a JSON file to a useful table in a minute.
Step one: find the records
Real responses rarely start with the array you want. A typical body has a meta block, paging information and the records under something like data.orders. The first job is to point at that array. In the JSON Table Explorer you can type a short path such as $.data.orders, but you rarely need to: the tool lists every array in the document with its length, with arrays of objects first, and you tap the right one.
Paths follow a small, practical subset of JSONPath. $.a.b walks members, ["key with spaces"] handles awkward names, [0] picks one element and [*] collects the items of every element, for example all line items across all orders.
JSON Lines files, where each line is its own object, are recognised automatically. Logs and data exports often use this format.
Step two: decide what to do with nesting
Each object becomes a row and each key a column. The columns are the union of all keys, so a field that appears in only one record still gets a column. That is often how you discover optional fields such as a coupon code.
Nested values can be handled two ways. Keep them as cells showing {3} or [2], and tap one to read it in full, or flatten them into columns such as customer.name and customer.country. Flatten one level for a typical API, or several levels for deeply nested data.
Step three: narrow it down
- Search looks in every cell at once.
- Filters apply exact rules to one column: contains, equals, not equal, greater or smaller, empty, not empty, or a regular expression. Numbers are compared as numbers, and ISO dates compare correctly as text.
- Sorting happens by tapping headers. Tap a second header to add it as the next key, so you can sort by country and then by total. Tap again to reverse.
- Columns can be hidden one by one, or all empty columns in one go. Each column shows its type and how many rows have a value, which is a quick data quality check.
View settings have undo and redo, so trying a filter costs nothing.
Step four: export exactly what you see
The CSV, Excel and JSON exports contain the visible columns and the filtered rows in the current order. This is the part that saves the most time: you build the view you need on screen and send that, rather than exporting everything and repeating the filtering in a spreadsheet.
An example
An export of five orders has id, a nested customer, total, status, an items array, a created date and, in one record only, coupon. After flattening one level, a filter on status = paid leaves three orders. Sorting by customer.country and then by total descending lists the two Bangladeshi orders, 230 and 84.5, before the American one. The CSV export holds those three rows in that order, ready for a report.
When a table is the wrong tool
Very large files, hundreds of megabytes or more, should be opened with a streaming viewer because this explorer parses the whole document in memory. Documents that are not lists, such as a single configuration object, are better read in a tree view. And if you need to join two files or calculate new columns, use a pipeline or SQL tool afterwards; the explorer is for looking, filtering and exporting.
Privacy
The file is read in your browser. Nothing is uploaded, and only the view settings, not the data, are remembered on the device. That matters when the JSON contains customer names, emails or order values.
Summary
Point at the array, choose how to show nested data, filter and sort until the view answers your question, and export that view. It is the quickest route from a raw API response to something a colleague can read.



