Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {Token:[{"new":"jkajshdkjashdjhasjkdhjkhd+sd==sfbjhdskfbks+sdjfbs=="}]}
- - (void)requestFinished:(ASIHTTPRequest *)req
- {
- NSString *responseString = [req responseString];
- NSLog(@"Response: %@", [req responseString]);
- // Parse the response
- SBJsonParser *jsParser = [SBJsonParser new];
- id content = [responseString JSONValue];
- if(!content){
- // Parsing error
- NSLog(@"%@", jsParser.errorTrace);
- }
- }
- NSLog(@"ID: %@", content);
- -JSONValue failed. Error trace is: (
- "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 "Object key string expected" UserInfo=0x5a418a0 {NSLocalizedDescription=Object key string expected}"
- {Token:[{"new":"jkajshdkjashdjhasjkdhjkhd+sd==sfbjhdskfbks+sdjfbs=="}]}
- {"Token":[{"new":"jkajshdkjashdjhasjkdhjkhd+sd==sfbjhdskfbks+sdjfbs=="}]}
- SBJsonParser *jsParser = [SBJsonParser new];
- id content = [responseString JSONValue];
- if(!content){
- // Parsing error
- NSLog(@"%@", jsParser.errorTrace);
- }
Add Comment
Please, Sign In to add comment