Value did not match expected type, NSLocalizedFailureReason=Expected 144.960302320699 to be of class NSValue but got __NSCFString}
Nagarjun123 opened this issue · comments
Hi,
I have a model as below:
While parsing JSON I am getting:
Error Domain=MTLTransformerErrorHandlingErrorDomain Code=1 "Value did not match expected type" UserInfo={MTLTransformerErrorHandlingInputValueErrorKey=144.960302320699, NSLocalizedDescription=Value did not match expected type, NSLocalizedFailureReason=Expected 144.960302320699 to be of class NSValue but got __NSCFString}
Earlier I was using Mantle version 1.5 it was working fine. But recently I have updated POD and getting this error:
My question is why is Mantle changed type difference in both versions. How to solve this issue and is there any JSONTransfomer need to write for CLLocationDegrees?
I think that's due to https://github.com/Mantle/Mantle/blob/2.0/CHANGELOG.md#type-checking-during-json-parsing.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.