Here is my problem. I have a server that gives me a response in JSON text. However the header content type is 'text/html' and I can't change it.
I need to proccess this response in my IOS app. I am using RESTKIT to make the request and handle the response, but RESIKIT tells me that content type expected is 'application/json' but gets 'text/html'.
Again, I cannot change the header content type since the server is a third party system.
My question is if it is possible and if so how do I get RESTKIT to read this 'text/html' response as of it was a 'application/json' response.
I looked around for a solution and everyone keep saying to ad this line of code.
[RKMIMETypeSerialization registerClass:[RKNSJSONSerialization class] forMIMEType:@"text/html"];
And I did, but I am still having the same problem. What am I missing?