Skip to content

Instantly share code, notes, and snippets.

View krispy-uccello-ck-zz's full-sized avatar

Krispy Uccello krispy-uccello-ck-zz

  • Credit Karma
View GitHub Profile
@krispy-uccello-ck-zz
krispy-uccello-ck-zz / gist:80c95da33b727cccd547d5e5a97b9854
Created May 18, 2018 21:53 — forked from daaain/gist:3932602
Google App Script - Spreadsheet JSON export
/**
* Adds a custom menu to the active spreadsheet, containing a single menu item
* for invoking the exportJSON() function specified above.
* The onOpen() function, when defined, is automatically invoked whenever the
* spreadsheet is opened.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function onOpen() {
var sheet = SpreadsheetApp.getActiveSpreadsheet();