JavaScript / jQuery Load JSON from URL

$.getJSON('', function(data) { //data is the JSON string });
This snippet is an example of how to get JSON from URL in Javascript.

1 Response

Caveat: this is jQuery, not vanilla JS.

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.