With SBJSON, it's really simple.
NSString *myDictInJSON = [myDict JSONRepresentation];
NSString *myArrayInJSON = [myArray JSONRepresentation];
Of course, to go the other way array, do:
NSDictionary *myDict = [myDictInJSON JSONValue];
NSArray *myArray = [myArrayInJSON JSONValue];
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…