What steps will reproduce the problem?
1. Create a complex JSON string that contains a dictionary not as the
outermost container (eg an Array of Dictionaries), try to parse.
What is the expected output?
A parsed object
What do you see instead?
A cryptic error message
What version of the product are you using? On what operating system?
Latest from SVN, iPhone beta 7
Please provide any additional information below.
The bug can be solved by adding the following code at line 231 in
CJSONScanner.m:
if ([self scanCharacter:'}'] == NO)
{
if (outError)
{
*outError = [NSError errorWithDomain:@"CJSONScannerErrorDomain" code:-5
userInfo:NULL];
}
}
Original issue reported on code.google.com by dmcl...@gmail.com on 24 Jun 2008 at 11:25
Original issue reported on code.google.com by
dmcl...@gmail.com
on 24 Jun 2008 at 11:25