{"id":20723548,"url":"https://github.com/gagan-bansal/get-json-data","last_synced_at":"2025-04-23T17:26:33.381Z","repository":{"id":25026917,"uuid":"28446363","full_name":"gagan-bansal/get-json-data","owner":"gagan-bansal","description":"Make ajax request to get the json data.","archived":false,"fork":false,"pushed_at":"2016-02-22T07:03:38.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T12:23:57.977Z","etag":null,"topics":["ajax","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gagan-bansal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-24T11:04:10.000Z","updated_at":"2019-09-30T15:33:40.000Z","dependencies_parsed_at":"2022-08-24T16:51:58.431Z","dependency_job_id":null,"html_url":"https://github.com/gagan-bansal/get-json-data","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gagan-bansal%2Fget-json-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gagan-bansal%2Fget-json-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gagan-bansal%2Fget-json-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gagan-bansal%2Fget-json-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gagan-bansal","download_url":"https://codeload.github.com/gagan-bansal/get-json-data/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250479386,"owners_count":21437355,"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":["ajax","get","json"],"created_at":"2024-11-17T04:09:00.851Z","updated_at":"2025-04-23T17:26:33.334Z","avatar_url":"https://github.com/gagan-bansal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# get-json-data\nMake ajax request to get the json data from browser. Not for nodejs, use [request](https://www.npmjs.com/package/request) module instead. \n\n\n## usage\ncan not be more simpler:\n\ninclude ```index.js``` in your html.\n\n```javascript\ngetJSONData(url,callback);\n//callback function \nfucntion callback(err, data) {\n  if (err) {\n    console.log('request failed');\n    return;\n  }\n  // do something with data\n}\n```\n### note\nThis module does not support jsonp. For jsonp request you may use [jsonp](https://www.npmjs.com/package/jsonp) module.\n### similar\nHere is list of other popular and stable projects\n* [superagent](https://github.com/visionmedia/superagent)\n* [axios](https://github.com/mzabriskie/axios)\n* [qwest](https://github.com/pyrsmk/qwest)\n* [A Comparison of JavaScript HTTP Libraries for the Browser](http://www.sitepoint.com/comparison-javascript-http-libraries/)\n* [when](https://github.com/cujojs/when)\n* [promise](https://github.com/then/promise)\n* [async](https://github.com/caolan/async)\n* [Loading JSON-formatted data with Ajax and xhr.responseType='json'](https://mathiasbynens.be/notes/xhr-responsetype-json#comments)\n* [Cross-Origin Resource Sharing (CORS) AJAX Requests Between jQuery And Node.js](http://www.bennadel.com/blog/2327-cross-origin-resource-sharing-cors-ajax-requests-between-jquery-and-node-js.htm)\n\n##License\nThis project is licensed under the terms of the MIT license.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgagan-bansal%2Fget-json-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgagan-bansal%2Fget-json-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgagan-bansal%2Fget-json-data/lists"}