I am using AFNetworking, Overcoat and Promisekit. I would like to see the json that I am getting back from the server.
//apiclient.h
@interface STRAPIClient : OVCHTTPSessionManager
//apiclient.m
[self POST:@"contents" parameters:parameters]
.then(^(OVCResponse *response) {
return response.result;
})
.catch(^(NSError * error){
NSLog(error.description);
});;
How do i get the response string from the NSError object?