Monotone-Parent: 652fb1324338399d044d5f01bb158d94080a27c0

Monotone-Revision: ea84b0da49761a54044bb70c2502171c1b981e86

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-10-26T18:20:46
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-10-26 18:20:46 +00:00
parent 25fa112832
commit 3743b78fff
11 changed files with 49 additions and 41 deletions
@@ -188,24 +188,3 @@ const int jsonDoNotIndent = -1;
}
@end
@implementation NSMutableDictionary (BSJSONAdditions)
+ (NSMutableDictionary *) dictionaryWithJSONString: (NSString *) jsonString
{
NSScanner *scanner;
NSMutableDictionary *dictionary;
dictionary = nil;
if ([jsonString length] > 0)
{
scanner = [[NSScanner alloc] initWithString: jsonString];
[scanner scanJSONObject:&dictionary];
[scanner autorelease];
}
return dictionary;
}
@end