vimsheet.io.json_adapter

JSON I/O for VimSheet.

.vimsheet — lossless native format (formulas, formatting, multi-sheet) .json — plain JSON array of objects, first row used as column headers

class vimsheet.io.json_adapter.JSONAdapter[source]

Bases: FormatAdapter

Read and write JSON.

.vimsheet → lossless native (formulas, formatting, multi-sheet) .json → plain array-of-objects using row 0 as header row

supported_extensions: list[str] = ['.vimsheet', '.json']
can_read_formulas: bool = True
can_write_formulas: bool = True
multi_sheet: bool = True
read(path, **opts)[source]

Read path and return a populated Workbook.

Parameters:
Return type:

Workbook

write(workbook, path, **opts)[source]

Serialise workbook to path.

Parameters:
Return type:

None