Created
June 11, 2017 09:12
-
-
Save frbl/77bd3a60b3c97c7f31b0e70ed3a7b43f to your computer and use it in GitHub Desktop.
Simpel voorbeeldje voor het lezen van de JSON
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script> | |
</head> | |
<body> | |
<ul id='data'> | |
</ul> | |
<script> | |
$(document).ready(function() { | |
$.get('170609_response_contents_array.json', function(data) { | |
console.log(Object.keys(data[1])); | |
console.log(Object.keys(data[1].content)); | |
data.forEach(function(entry) { | |
$("#data").append('<li>'+entry.created_at.$date+'</li>'); | |
}) | |
}); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment