Skip to content

Instantly share code, notes, and snippets.

@jswhisperer
Created February 2, 2014 19:13
Show Gist options
  • Select an option

  • Save jswhisperer/8773258 to your computer and use it in GitHub Desktop.

Select an option

Save jswhisperer/8773258 to your computer and use it in GitHub Desktop.
JSON nojquery
request = new XMLHttpRequest
request.open('GET', '/my/url', true)
request.send()
request.onload = function() {
data = JSON.parse(this.response)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment