Is such thing possible?
I want to create a dataType called "json/rows", that parses the text the server outputs, and does something to it, then it goes to the success function?
Example code in how I think it should work:
$.ajax({
dataType: "json/rows",
dataTypeParser: function(response) {
response = JSON.parse(response);
response.rows = "test";
return response;
},
success: function(response) {
console.lo(response.rows); //console logs "test"
}
})