JSON export with types and schema
Exports rows as a JSON array of objects or arrays, preserving native types. An optional schema header describes the columns. This suits API round-trips and lossless re-import.
Planned. This page shows the specification from issue #200. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Grid with string, number, boolean, date and null values.
Expected behavior
The preview shows valid JSON. Numbers and booleans are unquoted, dates use the selected format, and the schema lists each column's id, header and type.
Planned API surface
exportOptions.format='json'json.shape'objects' | 'arrays'json.includeSchemajson.keyFieldjson.indentjson.dateFormatAcceptance criteria
- The output parses with JSON.parse without error. (pending)
- Numbers, booleans and null keep their JSON types. (pending)
- With includeSchema:true, the output is {schema:[...], rows:[...]}. (pending)
- Shape 'arrays' emits the header order once in the schema and rows as arrays. (pending)
- Nested field paths (a.b) export as nested objects in 'objects' shape when json.nested:true. (pending)