7
Come utilizzare JSONKit per serializzare un NSDictionary in stringa? Non ho trovato nessun esempioJSONKIt serialize NSDIctionary
Come utilizzare JSONKit per serializzare un NSDictionary in stringa? Non ho trovato nessun esempioJSONKIt serialize NSDIctionary
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];