Skip to content

Instantly share code, notes, and snippets.

@nallenanderson
Last active July 21, 2016 20:43
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 nallenanderson/d9b71b0b826311a53ab082c3749b0a49 to your computer and use it in GitHub Desktop.
Save nallenanderson/d9b71b0b826311a53ab082c3749b0a49 to your computer and use it in GitHub Desktop.
// Create the array where we will store our JSON response.
let jsonData =[];
// Get the original JSON from site
$.ajax({
method: 'GET',
dataType: 'jsonp',
url: 'http://developers.modyo.com/media.json',
success: data => data.media,
error: err => console.log(err)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment