in JavaScript!
Rachel Boyce rboyce@fas.harvard.edu
Beautiful Data II
key:
value
{object}
[array]
text editor -----> web server ----> web browser
Other options:
it's interactive!
Sublime -----> python SimpleHTTPServer ----> Chrome
Tasks:
Read it in
Take a look at the structure
Parse out the info you need
Generate output
text file
DOM (HTML) elements
$.getJSON();
jQuery library:
standard JSON library:
JSON.parse(inputJSON, callback function); JSON.stringify(outputJSON, callback function);
Iterate on data elements
Algorithmically select elements
Insert new elements
Export for further analysis
...and more!
By arebe
A quick tutorial on using the JSON file format in Javascript