My favorites | Sign in
Project Home
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 14: scanJSONdictionary does not read the closing }
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Jun 2008


 
Reported by dmcl...@gmail.com, Jun 24, 2008
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
Fixed in r83. All unit tests pass.
Status: Fixed

Powered by Google Project Hosting