Convert SDC to JSON
Turn SDC documents into JSON files. One JSON file per worksheet, hidden ones included: an array with one object per row, keyed by the sheet's first row.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop SDC files on the dialor turn it to pick what to do
Old StarCalc sheets as JSON data.One JSON file per worksheet, each holding one object per row.
What you get
Each worksheet becomes its own JSON file, and hidden worksheets are included. The file is an array with one object per row, and the keys come from the first row of the sheet.
Formulas give their last computed values. Numbers are typed as numbers, and dates are written as YYYY-MM-DD.
What changes
Booleans stay the text TRUE or FALSE, not JSON true or false.
A sheet with only one row becomes an empty array. That row supplies the keys, so no data rows are left to write.
Converting one sheet
Set Sheet to convert a single worksheet. Give its name or its number counting from 1. When Sheet is left out, every worksheet is converted.
To combine the resulting files afterward, see merge JSON.
SDC and JSON.What each format is, and the options this conversion takes.
- 01 · sheet
Sheet
The one worksheet to convert, by its name or by its number counting from 1. Every worksheet is converted when it is left out.
The formats
StarOffice Spreadsheet
Spreadsheets from StarCalc in StarOffice 3 to 5, the binary format that came before OpenOffice.org's XML.
- Extensions
- .sdc
- MIME type
- application
/vnd .stardivision .calc - Kind
- Documents
JSON
JSON, the data format of every API.
- Extensions
- .json
- MIME type
- application
/json - Kind
- Text and data
In your code.The same SDC to JSON conversion through the API, for your app or your agent.
$ cv convert report.sdc report/ --to json$ cv convert report.sdc report/ --to jsonQuestions.What people ask about SDC to JSON.
One per worksheet, hidden ones included. Set Sheet to get only one.
From the first row of each sheet. Every row after it becomes an object using those keys.
No. Each formula gives its last computed value.
The sheet has only one row. That row is used for the keys, so there are no data rows to write.