JSON Tabbed Table Editor
Display a JSON file like an Excel spreadsheet in VS Code. Each top-level key is a tab (fixed at the bottom), and each array is an editable table with a sticky header row and row numbers on the left.

The example uses sample/sample.json. Select a cell to edit its value in the text area above the table, or edit it directly in the grid.
The document must be an object whose top-level values are arrays:
{
"users": [
{ "id": 1, "name": "Alice", "active": true },
{ "id": 2, "name": "Bob", "active": false }
],
"colors": ["red", "green", "blue"]
}
Here, users becomes a table with id, name, and active columns; colors becomes a table with a single value column. This edits the JSON file directly; it does not create an Excel (.xlsx) file.
Features
- Tabs – one per top-level key, with row count. Tab bar stays fixed at the bottom.
- Tables – arrays of objects become rows/columns (columns = union of all object keys). Arrays of plain values are shown as a single
value column.
- Multi-line cells – text wraps and keeps line breaks.
- Full-cell editors – text inputs and enum dropdowns fill their column width and the full row height, including rows with multi-line content.
- Selected-cell editor – column-name and row-number dropdowns follow the focused cell and reload when changing tabs. Icon buttons provide Undo, Redo, and Open as Text, with validation messages below them. The text area on the right shows the selected cell's value; edits are committed on blur or
Ctrl+Enter (Cmd+Enter on macOS), and Esc cancels. Valid JSON objects and arrays become structured cell values; other input remains free text. Structured values appear as formatted JSON in the text area and can be replaced with plain text.
- Selected-field description – the schema field description appears below the selected-cell text area, matching the cell's hover description. It updates when selecting another field or switching tabs and is hidden when no description is available.
- Enum dropdown choices come only from the schema (plus the permitted empty option). Free-text values outside the enum remain in the cell and selected-cell text area, but leave the dropdown unselected and are reported by schema validation.
- Array / object cells (first level) – a cell holding an array is shown as a list (one value per line) with a
+ beside the last value to add a new one. A cell holding an object is shown as a two-column key/value table (keys on a shaded background) with a + row to add a new key-value pair (named key1, key2, … and selected so you can type over it). Keys and values are editable inline; deeper nested values are edited as JSON text. Right-click a value or key for insert above/below, move up/down and delete, or Edit Cell as JSON to edit the whole cell as raw JSON.
- Inline editing synced to the file – edits go directly into the underlying text document (dirty indicator, save, undo of the file, and a side-by-side text editor all stay in sync; external changes refresh the table).
- Structure editing
- Keys: add (
+ tab), insert before/after, rename (double-click tab), move, delete.
- Rows: append (
+ at the bottom of the row-number column), insert above/below, duplicate, move, delete (right-click a row number or cell).
- Columns: append (
+ at the end of the header row), insert left/right, rename (double-click header), move, delete (right-click a header or cell).
- Column widths – drag the right edge of a header to resize; double-click the edge to auto-fit. The column context menu has Auto-fit Column Width, Auto-fit All Columns, Reset Column Width and Reset All Column Widths. Auto-fit uses the longest line of each cell (capped at 90% of the view width). Widths are view-only (not written to the file) and are kept while the editor is open.
- Type preservation – numbers stay numbers, booleans stay booleans,
null stays null, nested objects/arrays are edited as JSON text. New cells take the type of other values in the same column.
- JSON Schema support – schemas configured with
json.schemas or referenced by a document’s $schema property provide columns for empty object arrays, field descriptions on hover, and dropdowns for enum fields. The toolbar reports schema validation errors, and invalid cells are highlighted.
- Undo / Redo for table operations (toolbar or
Ctrl+Z / Ctrl+Y when not editing a cell).
JSON Schema setup
Example VS Code workspace setting:
"json.schemas": [
{
"fileMatch": ["**/DataDefinition/*.json"],
"url": "./scripts/DataDefinition/data_definition.schema.json"
}
]
Schema file URLs in json.schemas and a document’s $schema property are read through VS Code’s file system provider. Schema references are expected to resolve within the loaded schema (for example, #/$defs/...).
Relative json.schemas URLs resolve against the JSON document's workspace folder; relative $schema URLs resolve against the document's directory. Folder-specific settings are supported, and changes to json.schemas refresh open table editors.
Adjust fileMatch to your data file names so it does not match the schema file itself.
Example: enum dropdowns and validation
To try schema-aware editing with the bundled sample, add this inline schema association to your workspace's json.schemas setting:
{
"json.schemas": [
{
"fileMatch": ["**/sample/sample.json"],
"schema": {
"type": "object",
"properties": {
"users": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": { "type": "integer" },
"name": { "type": "string", "enum": ["Alice", "Bob", "Carol"] },
"active": { "type": "boolean", "enum": [true, false] },
"notes": { "type": "string" },
"tags": { "type": "array", "items": { "type": "string" } }
},
"required": ["id", "name", "active"]
}
}
}
}
}
]
}
Open sample/sample.json as a table. The name and active columns now have dropdowns. Select row 3's name cell, enter Dana in the selected-cell text area, and commit with Ctrl+Enter (Cmd+Enter on macOS).

Dana is preserved as free text, but the dropdown stays unselected because it is not a schema choice. The cell is highlighted and the toolbar explains the validation error. Choose Carol from the dropdown to make the value valid again.
Keyboard (while editing a cell)
| Key |
Action |
Enter |
Commit and move down (adds a row at the end) |
Shift+Enter / Alt+Enter |
New line inside the cell |
Tab / Shift+Tab |
Next / previous cell |
Esc |
Cancel the edit |
In the selected-cell text area above the grid, Enter inserts a new line. Click outside it or press Ctrl+Enter (Cmd+Enter on macOS) to commit; Esc cancels. Use the column and row dropdowns to select another cell. JSON objects and arrays entered here become structured values; other input, including numbers and booleans, is saved as text. Use the grid editor to preserve scalar types or a schema dropdown to choose a typed enum value.
Opening a file in table view
The table view is registered as an optional editor for *.json, so normal JSON editing is unchanged:
- Click the table icon in the editor title bar (only shown when the file matches the
{ key: [] } format), or
- Right-click a
.json file in the Explorer → Open as Table, or
- Command Palette → JSON Table: Open as Table, or Reopen Editor With… → JSON Table.
Use Open as Text (title bar or toolbar) to switch back. Files that do not match the format show a message instead of a table.
To always open a specific pattern as a table, add to settings.json:
"workbench.editorAssociations": { "*.table.json": "jsonTable.editor" }
Run / install
- Debug: open this folder in VS Code and press
F5 (opens sample/sample.json's folder).
- Package:
npx @vscode/vsce package --allow-missing-repository, then Extensions → … → Install from VSIX.
Release notes
0.5.3
Bug fixes
- Replaced relative README screenshot links with public HTTPS URLs so images load in the Marketplace description.
0.5.2
New features
- Added the selected field's schema description below the selected-cell text area, matching the cell hover description.
- The description updates when selecting fields, switching tabs, or refreshing schema settings, and hides when no description is available.
0.5.1
Bug fixes
- Enum dropdowns contain only schema choices and the applicable empty/prompt option; free-text values no longer become extra choices.
- Values outside an enum remain unchanged in the JSON file and selected-cell editor. Their dropdown stays unselected, and schema validation highlights the error.
- Optional and nullable enum fields retain their permitted empty option.
0.5.0
New features
- Added the selected-cell text editor with column-name and row-number selectors that follow the focused cell and refresh when switching tabs.
- Added toolbar icon buttons for Undo, Redo, and Open as Text, with schema validation messages below them.
- Added multi-line and structured JSON editing in the selected-cell text area, with commit on blur or
Ctrl+Enter / Cmd+Enter and cancel on Esc.
0.4.2
Bug fixes
- Text editors and enum dropdowns fill the entire cell width and row height, including rows containing multi-line values.
Notes / limitations
- The file is re-serialized with
JSON.stringify using the file's detected indentation and line endings; only the changed lines are replaced. Custom formatting (e.g. compact rows) in changed regions is normalized.
- JSON with comments and very large integers (beyond 2^53) are not supported.
- Object keys that look like integers are ordered first (standard JavaScript behaviour).
- Although schema lookup recognizes a document's
$schema property, a string-valued top-level $schema does not match the table format. Use a json.schemas association to keep the document compatible with table view.