I created this for a custom JSON export for a specific format that I needed.
Sheet names are used for the array of objects name. Top row's on the sheet are used as headings/keys within the object.
The sheet above will output like:

- Within the sheet you wish to export, click Tools > Script Editor.
- Paste in the code from this repo's Code.gs file.
- Save and return to your sheet.
- A new menu is added called JSON Export.
- Profit.
