I use Objective-C bindings for YAJL in my Mac OS X application.
I could not find out how to insert a boolean value (to appear as key:true
in the JSON string) in my NSDictionary:
NSMutableDictionary* jsonDict = [NSMutableDictionary dictionary];
[jsonDict setValue: YES forKey: @"key"];
The code above does not run (obviously because YES is not an object).
How can I accomplish this?