【发布时间】:2011-09-08 14:48:38
【问题描述】:
我有来自这里的 json 字符串:http://vkontakte.ru/al_video.php?act=load_videos_silent&al=1&oid=8046830
我使用 Touch json 解析器。
//received json string from ASIHTTPRequest
NSString *responseString = [request responseString];
//removing all html elements like "br"
NSString *jsonString = [self decodeHTMLEntities:responseString];
//remove 4830<!><!>0<!>4316<!>0<!> this string at the beginning
jsonString = [jsonString stringByReplacingCharactersInRange:NSMakeRange(0, 25) withString:@""];
NSArray *arr = [jsonString JSONValue]
//And here is an error in Debug console: -JSONValue failed. Error is: Illegal start of token [']
如何解决这个问题?
【问题讨论】:
标签: objective-c ios json parsing