I assume you are using the SBJSON library in Objective-C. If so this is how to parse a JSON string. This assumes that you are sending an array via JSON.
SBJSON *generator = [SBJSON alloc]; NSError *error; NSArray *key = [generator objectWithString:aJSONString error:&error]; [generator release]; To generate JSON the code looks like this. SBJSON *generator = [SBJSON alloc]; NSError *JSONError; NSString *dataString = [generator stringWithObject:retVal error:&JSONError]; [generator release]; If you are doing this from JavaScript which JSON library are you using? lee On Apr 5, 4:15 am, rim negra <[email protected]> wrote: > I need to know how Can I use the framework JSON in my application iphone in > order to pasre my results of my web services REST > > I found the framwork JSON ..I downloaded it .. bit I don't Know how I will > use it ? > is any one familier with this framework ? -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
