// ajax request to this app's /json route // gets data and loads it into callback // you can do whatever you want with the data // inside the callback $.ajax('/json').done(function(result) { console.log(result); });