mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-03 04:37:16 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user