値とキーのペアを設定しようとすると、次のエラーが発生します。
2011-06-21 16:21:16.727 agent[94408:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<SBJsonWriter 0xab31230> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key key.'
コードは次のとおりです。
SBJsonWriter *writer = [[SBJsonWriter alloc] init];
[writer setValue:@"val" forKey:@"key"];
NSString *json = [writer JSONRepresentation];
NSLog([NSString stringWithFormat:@"json: @%", json]);