{"id":18615001,"url":"https://github.com/andrewjbateman/google-sheets-json","last_synced_at":"2025-11-03T03:30:32.476Z","repository":{"id":96859427,"uuid":"465750884","full_name":"AndrewJBateman/google-sheets-json","owner":"AndrewJBateman","description":":clipboard: Javascript \u0026 Google Apps Script used as a backend to get data from a Google Sheets spreadsheet then convert to a JSON object array.","archived":false,"fork":false,"pushed_at":"2022-03-03T14:29:14.000Z","size":342,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-27T02:45:13.538Z","etag":null,"topics":["data-conversion","google","google-apps-scripts","google-sheets","json","xls"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndrewJBateman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-03T14:22:16.000Z","updated_at":"2022-03-03T14:25:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"227934f2-ceca-45c2-8209-d53d6706ae7d","html_url":"https://github.com/AndrewJBateman/google-sheets-json","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fgoogle-sheets-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fgoogle-sheets-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fgoogle-sheets-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fgoogle-sheets-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/google-sheets-json/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239406450,"owners_count":19633024,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-conversion","google","google-apps-scripts","google-sheets","json","xls"],"created_at":"2024-11-07T03:27:47.969Z","updated_at":"2025-11-03T03:30:32.444Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"JavaScript","readme":"# :zap: Google Sheets JSON\n\n* Javascript \u0026 Google Apps Script used as a backend to get data from a Google Sheets spreadsheet then convert to a JSON object array.\n* **Note:** to open web links in a new window use: _ctrl+click on link_\n\n![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/node-express-excel?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/node-express-excel?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/node-express-excel?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/node-express-excel?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [General info](#general-info)\n* [Screenshots](#screenshots)\n* [Technologies](#technologies)\n* [Setup](#setup)\n* [Features](#features)\n* [Status](#status)\n* [Inspiration](#inspiration)\n* [Contact](#contact)\n\n## :books: General info\n\n* All code is written in Google Apps Script that is accessed from the menu of a Google Sheets spreadsheet\n* `data.xls` shows the random technical data I used in a spreadsheet but any data could be used\n\n## :camera: Screenshots\n\n![Image](./img/sheet.png)\n![Image](./img/xls.png)\n\n## :signal_strength: Technologies\n\n* [Google Apps Scripts](https://developers.google.com/apps-script)\n\n## :floppy_disk: Setup\n\n* The Google Sheets document id has to be added as the const id in `convert_xls_json.js`\n* Copy JS code into a Google Sheets spreadsheet Google Apps Script and run\n\n## :wrench: Testing\n\n* N/A\n\n## :computer: Code Examples\n\n* `convert_xls_json.js` forEach method to add the xls header data to a userData array\n\n```javascript\n  userData.forEach((element, ind) =\u003e {\n    const temp = {\n      row: ind + 2,\n    };\n    headers.forEach((header, index) =\u003e {\n      temp[header.toLowerCase()] = element[index];\n    });\n    userArray.push(temp);\n  });\n```\n\n## :cool: Features\n\n* Converting xls to JSON data\n\n## :clipboard: Status, Testing \u0026 To-Do List\n\n* Status: Working\n* To-Do: Nothing\n\n## :clap: Inspiration\n\n* [Google Apps Scripts documentation](https://developers.google.com/apps-script/guides/docs)\n\n## :file_folder: License\n\n* This project is licensed under the terms of the MIT license.\n\n## :envelope: Contact\n\n* Repo created by [ABateman](https://github.com/AndrewJBateman), email: gomezbateman@yahoo.com","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fgoogle-sheets-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fgoogle-sheets-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fgoogle-sheets-json/lists"}