MugunthKumar/MKNetworkKit — Issue #5: jsonResponse not working for cached data
Author: viggiosoft
Created: 2011-12-08 13:45:53+00:00
State: open

It seems that if you try to run the jsonResponse method when the operation data is taken from cache, an exception is raised by the json serializer. In such case the only way to avoid this crash is to check if the answer is coming from cache or not and then in that use use responseData to get the json.
Probably the reason is coming from the fact that jsonResponse is accessing mutableData which is not affected when the response is retrieved directly from cache.