tristanhimmelman/AlamofireObjectMapper

ResponseObject, ResponseArray does not work for nested path

Closed this issue · 4 comments

For Example if I have response starts with metadata.results I get serialization error:
Alamofire.request(.GET, BaseURL
,parameters: ["page": "0", "maxitems": "20"])
.responseObject("metadata.results") { (response: Response<T, NSError>) in
print (response)
};

Error: FAILURE: Error Domain=com.alamofire.error Code=-6004 "ObjectMapper failed to serialize response." UserInfo={NSLocalizedFailureReason=ObjectMapper failed to serialize response.}

These should work as I have tests in place to ensure that they do.

Please paste you JSON response and your models so that I can help you better

My mistake, I just realized that I have not released AlamofireObjectMapper since adding the nested key paths feature.

Please get the latest release: 2.1.0

hi i'm try to implement the code from this link of yours
https://github.com/tristanhimmelman/AlamofireObjectMapper

but im getting error
"getEvents error: Error Domain=com.alamofire.error Code=-6004 "ObjectMapper failed to serialize response." UserInfo={NSLocalizedFailureReason=ObjectMapper failed to serialize response.}"