I'm trying to make global ajax handler of general purpose responses. (Eg. refresh page)
Is there any handler or hack so i'd get already parsed json, so i woudn't have to parse it twice?
$(document).ajaxSuccess(function(e, xhr) {
// Validate and parse xhr.responseText TWICE!
});
Okay, found a bit "hacky" solution, maybe useful to others :)