-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
about convert json to NSDictioanry (error if json string contains double field) #192
Comments
I trace the code , I find the reason ... check the code bellow: // this is error ! please help ... |
the same problem also occurs on AFNetworking... responseObject = [NSJSONSerialization JSONObjectWithData:data options:self.readingOptions error:&serializationError] NSJSONSerialization occurs the same issue, how to solve this type problem ??? |
this kit is not be maintained ? |
Nope. Last update was in 2012 and the developer is nowhere to be seen. NSJSONSerialization is what most people are using now. |
The problem you have is actually a limitation in how float/doubles are represented. There is often very slight inaccuracies in them. See #110. |
NSJSONSerialization also occurs the same problem... I try to fix it via JSON kit ... |
I face a problem, if response json string contains some double value , then while got the NSDictionary , the value is not normal ...
example :
{
"int": 12,
"double": 67860.04,
}
then got the Dictionary that will be :
double = "67860.03999999999";
the filed 'double' value is not original data.....
how to fix it ?
The text was updated successfully, but these errors were encountered: