Transforms the data of a given Spreadsheet Sheet to JSON.
- The frozen rows are taken as keys for the JSON.
- The data taken for the values is only that after the frozen rows
exportJSON(Spreadsheet)
- transforms the data in the given sheet to JSON.
<div id="toolbar"> | |
<div id="title"> Rich-text Editor </div> | |
<button id="bold" onclick="makeBold()"> Bold </button> | |
<button id="italic" onclick="makeItalic()"> Italic </button> | |
<button id="underline" onclick="doUnderline()"> Underline </button> | |
<button onclick="justifyLeft()"> Justify Left </button> | |
<button onclick="justifyCenter()"> Justify Center </button> | |
<button onclick="justifyRight()"> Justify Right </button> |
/* | |
updated 2018-04-28 | |
source lives here: https://gist.github.com/nicobrx/2ecd6fc9ca733dcd883afebba5cf200e | |
standalone script ID for use as a library: 1gZ78JObyrYiH0njoZ86fQ2NgMwavUgiXVhRDrIFetPZL256e31PSNiHq | |
Functions included here: | |
Sheets data array and object functions | |
objectifySheet(sheet,propertyNames,newPropertyNames) - Takes a sheet with a header row and converts it into an array of objects | |
arrayFromSheet(sheet,propertyNames,newPropertyNames) - creates an array from a sheet, can specify column headers |