Showing posts with label Google App Script. Show all posts
Showing posts with label Google App Script. Show all posts

Friday, March 1, 2013

Download customized json from google drive spreadsheet

Google Drive Limitation

Google drive provide option to export spreadsheet as json,but sometimes user need customized structure of json. To generate desirable json, we need to write spreadsheet script which read data from cell and build json object.

Consider following Spreadsheet

The original json output for above spreadsheet is here. But we need only data json.

Approach

  1. First we need to read data from cell, and create Json object 
  2. Make another spreadsheet and dump json data to that, so that it can be download as plain txt 

1 comments