I have a NSDictionary that contains a value of (float)7.60. When I use NSJSONSerialization it no longer has the correct value for the float field.
NSData *data = [NSJSONSerialization dataWithJSONObject:dictionaryData options:NSJSONWritingPrettyPrinted error:&error];
This is what the JSON looks like.
{
"CDCART#" : 1,
"CDACTN" : "File Update",
"CDORD#" : 0,
"CDPRIC" : 7.5999999046325684
}
Any help would be greatly appreciated.