Convert OTS to JSON

Turn OTS 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 OTS files on the dialor turn it to pick what to do

Spreadsheet rows as JSON data.Each worksheet becomes a JSON file with one object per row.

  1. What you get

    One JSON file per worksheet, hidden ones included. Each 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. Dates are written as YYYY-MM-DD, and numbers are typed as numbers.

  2. What changes

    Booleans stay the text TRUE or FALSE, not JSON true and false. A sheet with only one row becomes an empty array, because the first row supplies the keys and no row is left to become an object.

  3. Choosing a sheet

    Set Sheet to convert one worksheet. Give its name, or its number counting from 1. When Sheet is left out, every worksheet is converted.

    To join the results afterward, you can merge JSON files.

OTS and JSON.What each format is, and the options this conversion takes.

  1. 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

From · OTS

OpenDocument Spreadsheet Template

A LibreOffice Calc template. New spreadsheets start from a copy of it.

Extensions
.ots
MIME type
application/vnd.oasis.opendocument.spreadsheet-template
Kind
Documents
To · JSON

JSON

JSON, the data format of every API.

Extensions
.json
MIME type
application/json
Kind
Text and data

In your code.The same OTS to JSON conversion through the API, for your app or your agent.

terminal
$ cv convert report.ots report/ --to json
$ cv convert report.ots report/ --to json

Questions.What people ask about OTS to JSON.

01OF 04

One per worksheet, hidden worksheets included. Set Sheet to get only one.

From the first row of each sheet. Every later row becomes one object that uses those keys.

Their results. Formulas give their last computed values.

The sheet has only one row. That row gives the keys, so no row is left to become an object.

More conversions.Other ways in and out of OTS and JSON.