Skip to content

Instantly share code, notes, and snippets.

@Drixled
Created July 18, 2018 18:04
Show Gist options
  • Save Drixled/7ed623e6ca55f451462d4a49b9447f31 to your computer and use it in GitHub Desktop.
Save Drixled/7ed623e6ca55f451462d4a49b9447f31 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>stringify</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="">
</head>
<body>
<pre id="test"></pre>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script>
var json = $.getJSON("https://mdn.github.io/learning-area/javascript/oojs/json/superheroes.json",
function (response, status, jqXHR) {
console.log(jqXHR.responseText);
document.getElementById('test').innerHTML = jqXHR.responseText;
}
);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment