{"id":13305530,"url":"https://github.com/Link-/gsheetToJSON","last_synced_at":"2025-03-10T13:31:25.351Z","repository":{"id":148981545,"uuid":"161207261","full_name":"Link-/gsheetToJSON","owner":"Link-","description":"Transforms Google Sheet into JSON with a public endpoint","archived":true,"fork":false,"pushed_at":"2018-12-10T17:01:52.000Z","size":3349,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-14T05:29:57.361Z","etag":null,"topics":["appsscript","google-sheets","json","json-api"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Link-.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-12-10T16:54:06.000Z","updated_at":"2023-10-13T08:36:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"64a214ed-113e-4808-8665-091cc19e90de","html_url":"https://github.com/Link-/gsheetToJSON","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/Link-%2FgsheetToJSON","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Link-%2FgsheetToJSON/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Link-%2FgsheetToJSON/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Link-%2FgsheetToJSON/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Link-","download_url":"https://codeload.github.com/Link-/gsheetToJSON/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242859584,"owners_count":20196966,"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":["appsscript","google-sheets","json","json-api"],"created_at":"2024-07-29T17:53:51.352Z","updated_at":"2025-03-10T13:31:25.329Z","avatar_url":"https://github.com/Link-.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Sheet to JSON Endpoint\n\nThis guide defines the process of converting a Google Sheet into a publicly callable JSON endpoint. You don't need external hosting of any kind, everything is done within Google Sheets.\n\nThis API Endpoint can be used to provide content to an app able to consume JSON.\n\n### Installation\n\nAdd the scripts `Main.gs` and `SheetToJSON.gs` to an existing or new Google Sheets Workbook.\n\n\u003cimg src=\"https://raw.githubusercontent.com/Link-/gsheetToJSON/master/sheetToJSON.gif\" width=\"800\" /\u003e\n\n### Usage\n\nThe script supports nesting, simply use the dash `-` in the column name and the script will create the appropriate structure.\n\n#### Example Sheet\n\n|COLUMN NAME|COLUMN_NAME|COLUMN-NEST-NAME|COLUMN-NEST_NAME|COLUMN_NEST-NAME|\n|---|---|---|---|---|\n|value1|value2|value3|value4|value5|\n|value6|value7|value8|value9|value10|\n\n#### Output\n\n```\n[\n  {\n    \"COLUMN NAME\": \"value1\",\n    \"COLUMN_NAME\": \"value2\",\n    \"COLUMN\": {\n      \"NEST\": {\n        \"NAME\": \"value3\"\n      },\n      \"NEST_NAME\": \"value4\"\n    },\n    \"COLUMN_NEST\": {\n      \"NAME\": \"value5\"\n    }\n  },\n  {\n    \"COLUMN NAME\": \"value6\",\n    \"COLUMN_NAME\": \"value7\",\n    \"COLUMN\": {\n      \"NEST\": {\n        \"NAME\": \"value8\"\n      },\n      \"NEST_NAME\": \"value9\"\n    },\n    \"COLUMN_NEST\": {\n      \"NAME\": \"value10\"\n    }\n  }\n]\n```\n\n#### Credits\n\n- `sheetToJSON()` code [abhishekkannojia](https://stackoverflow.com/users/2386736/abhishekkannojia) on [StackOverflow](https://stackoverflow.com/questions/44178371/converting-csv-to-nested-json-in-javascript)\n\n### LICENSE\n\nMIT License\n\nCopyright (c) [year] [fullname]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLink-%2FgsheetToJSON","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLink-%2FgsheetToJSON","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLink-%2FgsheetToJSON/lists"}