stig/json-framework — Issue #106: Using the latest version of json-framework and xcode 4, it doesn't compile
Author: DanielViglione
Created: 2011-10-26 13:26:12+00:00
State: open

Hey all,

I just tried to get this json framework to output something in the console:

#import "SBJson.h"

- (void)viewDidUnload
{
NSString *jsonString = [NSString stringWithString:@"{\"foo\": \"bar\"}"];
NSDictionary *dictionary = [jsonString JSONValue];
NSLog(@"Dictionary value for \"foo\" is \"%@\"", [dictionary objectForKey:@"foo"]);

[super viewDidUnload];
}

It gives me back 11 errors when compiling:
SBJsonStreamWriter.h
Expected * before *
Expected a property attribute before 'unsafe_unrestrained'
Expected * before *
Expected a property attribute before 'strong'

And these errors occur in SBSjonStreamParser.h, SBJsonStreamAdapter.h, and SBJsonWriter.m as well.

thanks for response