Skip to content

Instantly share code, notes, and snippets.

@fisherds
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save fisherds/05eeab1396a8679510d6 to your computer and use it in GitHub Desktop.

Select an option

Save fisherds/05eeab1396a8679510d6 to your computer and use it in GitHub Desktop.
Skeleton code for a jQuery getJSON call from our ServerTime example
$.getJSON("/servertime").done(function(json) {
console.log("JSON Data: " + JSON.stringify(json));
// TODO: Do something with the JSON data.
}).fail(function(jqxhr, textStatus, error) {
console.log("GET JSON Request Failed: " + textStatus + ", " + error);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment