Skip to content

Instantly share code, notes, and snippets.

@tobiasroeder
Created June 5, 2019 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobiasroeder/8f5f3ad6e6456f7b3f04579bd880314b to your computer and use it in GitHub Desktop.
Save tobiasroeder/8f5f3ad6e6456f7b3f04579bd880314b to your computer and use it in GitHub Desktop.
Pur JavaScript to read a JSON file for the YouTube, GitHub or other API
fetch(YOUR_JSON_FILE_URL).then(function(responsive) {
return responsive.json();
}).then(function(obj) {
console.log(obj);
});
@tobiasroeder
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment