Request.JSON
sending a JSON request to the jsFiddle backend. Later on parse and display the data.
by Trufa
JavaScript
new Request.JSON({
url: '/echo/json/',
data: {
json: JSON.encode({
rating: 3
})
},
onSuccess: function(response) {
console.log(response);
}
}).send();