I am parsing Json Data into an NSDecimalNumber as follows
product.Price = [NSDecimalNumber decimalNumberWithDecimal:[[jProduct
objectForKey:@"Price"] decimalValue]];
This is in a loop with each product being added to an array. At the end I release the json object.
If I Log the value of product.Price during the loop the value is correct. However later on the the application lifecycle I access a product in the array and bang, I get EXC_BAD_ACCESS.
is this some odd pointer issue back to the json data which is then being released? any ideas? It's worth noting that the values of my NSIntegers and NSStrings are fine.