1$.ajax({
2 accepts: {
3 mycustomtype: 'application/x-some-custom-type'
4 },
5
6 // Instructions for how to deserialize a `mycustomtype`
7 converters: {
8 'text mycustomtype': function(result) {
9 // Do Stuff
10 return newresult;
11 }
12 },
13
14 // Expect a `mycustomtype` back from server
15 dataType: 'mycustomtype'
16});