| Issue 14: | scanJSONdictionary does not read the closing } | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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];
}
}
Jun 25, 2008
Project Member
#1
jwight
Status:
Fixed
|