I'm looking for a very very simple example where a Rails App does the following:
http://myapp.com/give_me_json
The returned data is a JSON:
[{"is_it_working":true, "very_simple_string":"Yes!"}]
I want to use the following function in JS to return the value of "is_it_working". But how???
function updateImpression(){
$.get('/give_me_json', function(data) {
$('.da_place').html(data);
}
Instead this would return the whole json as a string.