Skip to content

Report reference

Read the table matrix JSON format

Locate a cell by its row and column position. A worked lid-label table shows how the format preserves duplicate headings, blank strings and short rows.

Read the three top-level fields

Choose comma and Table matrix for table-matrix.csv. Open the result alongside table-matrix.example.json. The format value is yagiro-table-json-v1. The ordered columns array holds the first record. Each element of rows is one subsequent record, in source order.

The headings are Lid, an empty string and Lid. In the first data row, the first and third positions hold A2 and B3. Those positions pick out different labels even though their headings match.

Find the shortest row

The second data row contains only C4. Its array has one element. The third data row has three elements, an empty string, H and another empty string. A reader can count each array before asking for its third value. This keeps a missing position distinct from a stored empty string.

Keep column order and empty tables

JSON arrays preserve element order. Other programs can expose object members in a different order, even when a converter writes them in the order of the input headings. Use the matrix when column order matters. A header-only table retains its columns and has an empty rows array.

Check the schema and the source

table-matrix.schema.json describes the three required fields, string elements and size limits. It allows repeated or blank headings and different row widths. It checks the output structure. To check the meaning of C4 or the unit of another field, use the source definition. The JSON contains the headings and the data values.

Schema and examples

The schema describes the Table matrix format. Exported JSON contains the pasted data values; check the content before sharing it.

Reference sources

Continue with a check