mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-11 11:25:12 +00:00
Monotone-Parent: a1ad485763dbb256f42488a0cf3e8c8061604d83
Monotone-Revision: d656a1a3c9e97c1b1a23a7959821aa3c54780d86 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-11-18T23:15:34 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -35,10 +35,10 @@ const int jsonDoNotIndent = -1;
|
||||
|
||||
@implementation NSDictionary (BSJSONAdditions)
|
||||
|
||||
+ (NSDictionary *)dictionaryWithJSONString:(NSString *)jsonString
|
||||
+ (NSMutableDictionary *)dictionaryWithJSONString:(NSString *)jsonString
|
||||
{
|
||||
NSScanner *scanner = [[NSScanner alloc] initWithString:jsonString];
|
||||
NSDictionary *dictionary = nil;
|
||||
NSMutableDictionary *dictionary = nil;
|
||||
[scanner scanJSONObject:&dictionary];
|
||||
[scanner release];
|
||||
return dictionary;
|
||||
|
||||
Reference in New Issue
Block a user