Convert your Google Spreadsheet to JSON
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Convert your Google Doc spreadsheets to JSON, in the browser. This is not an API method.

It is for you to work with your data in Google Spreadsheets, then copy out the resulting JSON conversion to paste somewhere.

Row 1 must dictate the type of data you have in that column: Supported Types:

  • string (or just nothing at all. Values will be quoted and escaped)
  • number (data will attempt to be converted using parseFloat)
  • dict (data in cell as {"keyhere": "Value Here", ...})
  • boolean (true/false -- not specially handled, but just works)
  • list (data in cell as ["item 1", "item 2"...]. Double quotes mandatory)
  • date (sets date as timestamp in the SPREADSHEET timezone [set in File > Spreadsheet Settings])

Row 2 must be the column headers.

Rows 3+ are your data.

Fork of code at



  1. Format your data as per the above
  2. Go to Tools > Script Editor
  3. Paste the contents of into the box.
  4. Save, and run "readRows"
  5. A box will appear with the results


  1. If using dates, set your target timezone in File > Spreadsheet Settings
  2. Format your data as per the above
  3. Highlight your columns
  4. Go to "Insert"->"Gadget" and choose Custom. Add url
  5. Be sure to re-highlight your columns when prompted, if needed
  6. Enjoy!