{"id":22974127,"url":"https://github.com/diversen/get-json-promise","last_synced_at":"2025-07-05T15:02:14.160Z","repository":{"id":57250256,"uuid":"104637890","full_name":"diversen/get-json-promise","owner":"diversen","description":"Tiny module for getting JSON from a URL as a promise.","archived":false,"fork":false,"pushed_at":"2017-10-13T21:05:59.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-22T07:03:53.221Z","etag":null,"topics":["get-json"],"latest_commit_sha":null,"homepage":null,"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/diversen.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}},"created_at":"2017-09-24T11:09:18.000Z","updated_at":"2017-09-24T13:16:43.000Z","dependencies_parsed_at":"2022-08-24T16:01:55.651Z","dependency_job_id":null,"html_url":"https://github.com/diversen/get-json-promise","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/diversen/get-json-promise","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fget-json-promise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fget-json-promise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fget-json-promise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fget-json-promise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diversen","download_url":"https://codeload.github.com/diversen/get-json-promise/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fget-json-promise/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263279304,"owners_count":23441683,"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":["get-json"],"created_at":"2024-12-15T00:00:12.144Z","updated_at":"2025-07-05T15:02:14.115Z","avatar_url":"https://github.com/diversen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Get json promise\n\nTiny module for getting JSON from a URL as a promise. \nWill only work where the XMLHttpRequest exists, which is not native in e.g. nodejs. \nIt also does not include any promise library - so it may not work in older browsers. \n\n## Install \n\n    npm require --save get-json-promise\n\n## Usage\n\n~~~js\nvar jsonPromise = require('get-json-promise');\n\nvar url = 'http://localhost:8080/package.json';\n\njsonPromise(url).then(function(data) {\n    console.log(data);\n    // Returns object JSON.parse \n});\n~~~\n\nExample in a HTML page: \n\nSee [index.html](index.html)\n\nMIT © [Dennis Iversen](https://github.com/diversen)\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiversen%2Fget-json-promise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiversen%2Fget-json-promise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiversen%2Fget-json-promise/lists"}