I am trying to parse a json value to a decimal with no success. I am using the following framework
http://code.google.com/p/json-framework/
and my code is as follows
NSDecimal RRP = [[jProduct objectForKey:@"Price"] decimalValue];
NSLog(@"%@", RRP);
I get
Program received signal: “EXC_BAD_ACCESS”.
Just to test I thought I would try this:
NSLog(@"%@", [jProduct objectForKey:@"Price"]);
42.545
I get the value but obviously I have not set the NSDecimal.
Anybody else had similar experince or can see what I am doing wrong?
Thanks