SBJsonParser *parser = [[SBJsonParser alloc] init];
NSMutableArray *componenti = [parser
objectWithString:@"[\"Item1\",\"Item2\"]"];
NSAssert([componenti isMemberOfClass:[NSMutableArray class]],@"err");
This code gives me an assertion failed. What is wrong?
The header file says:
@brief The JSON parser class.
JSON is mapped to Objective-C types in the following way:
@li Null -> NSNull
@li String -> NSMutableString
@li Array -> NSMutableArray
etc...