Skip to content

Browser tool

Check the shape of a JSON table

Count rows, columns and empty strings before passing on a JSON table. Try a window display sheet with three headings and three very different rows.

Check a JSON table

Paste a row-object array or a yagiro-table-json-v1 matrix. The report counts rows, headings and cells. It omits field names and cell values.

Each object must use the same set of nonblank field names. Each value must be a string. Use double quotes around values such as "0007" and "12.30".

A matrix stores its headings in columns and its data in rows. The check counts repeated or blank headings and rows with a different width.

Each input and download can contain up to 100,000 UTF-16 code units. The table can have up to 2,000 records and 1 to 64 fields per record.

0 / 100,000

Enable JavaScript to use this tool in this tab.

Choose the table you want to check

Paste a JSON array of row objects or a table matrix into the checker. A matrix stores headings in columns and one array of cells per row in rows. The format value for that arrangement is yagiro-table-json-v1.

For a first check, use window-matrix.json from the report reference. Read just the columns array. The middle heading is empty and the third repeats the first. The table still has three column positions.

Compare the row widths

Count the cells on each row before running the check. The three widths are 3, 1 and 4. Two rows differ from the heading width. The report gives their count and the shortest and longest widths.

Two cells contain the empty string. A string containing two spaces has a length of two. The short row ends after its first cell, so its absent positions contribute nothing to the empty-cell count.

Decide how to carry the table

The compatibility flag is false for this matrix. If you need a field name for every position, refer to the original sheet for the names and the meaning of its short and long rows. Keep the positional matrix while those questions are open.

For named rows, every object needs the same set of 1 to 64 distinct, nonblank names. All values must be strings. If a row omits a field, the checker stops. The missing-and-empty exercise lets you compare that case with a stored empty string.

Read the result alongside the excerpt

The browser produces a report of counts, widths and compatibility. It omits the original names and values. Keep a reference to the input if someone will need to locate the two uneven rows.

Paste at most 100,000 UTF-16 code units and 2,000 data rows, with at most 64 fields per row. A successful check describes the excerpt you supplied. Confirm the display labels against the source before changing them.

Reference sources

Continue with a check