XML - pain to write and parse, but human and machine readable JSON - faster, human and machine readable, maps well to data structures in other langauges Writing JSON - double quotes, wrap it in single ruby JSON & RUBY - JSON.parse(json_string) JSON.generate(some_hash) some_hash.to_json JSON & jQuery = AJAX stuff:
/tweets.json
is an endpoint for your application.
$.getJSON('/tweets.json'), function (data) {
console.log(date);
});