Convert SXC to JSON
Turn SXC 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 SXC files on the dialor turn it to pick what to do
Spreadsheet rows as JSON objects.Each worksheet becomes its own JSON file, with one object per row.
What you get
One JSON file for every worksheet in the SXC file, hidden sheets included. Each file holds an array with one object per row, and the keys come from the first row of the sheet.
Numbers are typed as numbers in the JSON. Dates are written as YYYY-MM-DD.
What changes
Formulas give their last computed values, not the formulas themselves. Booleans stay the text TRUE or FALSE, so they are strings in the JSON, not true and false values.
A sheet with only one row becomes an empty array. The first row supplies the keys, so there are no data rows left to write.
Choosing a sheet
Set Sheet to convert one worksheet only. Give its name or its number counting from 1. When Sheet is left out, every worksheet is converted.
To combine the resulting files afterwards, you can merge JSON.
SXC 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
OpenOffice.org 1.0 Spreadsheet
Calc spreadsheets from OpenOffice.org 1.x and StarOffice 6 and 7, the XML format that OpenDocument grew out of.
- Extensions
- .sxc
- MIME type
- application
/vnd .sun .xml .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 SXC to JSON conversion through the API, for your app or your agent.
$ cv convert report.sxc report/ --to json$ cv convert report.sxc report/ --to jsonQuestions.What people ask about SXC to JSON.
Yes. Every worksheet gets its own JSON file, hidden ones included. Set Sheet to convert just one.
They come from the first row of each sheet. Every row after it becomes one object with those keys.
No. Each formula gives its last computed value.
The sheet has only one row. That row gives the keys, so no objects are written.