2011-08-19 12 views

risposta

11

La sezione "Serializzare Interface" del JSONKit README afferma che la biblioteca aggiunge un metodo JSONString-NSArray, NSDictionary e NSString. Questo sembra quello che stai cercando.

NSDictionary *dictionary = [NSDictionary withObjectsAndKeys:...]; 
NSString *JSON = [dictionary JSONString];