我有一些公共json服务的问题
以这种方式格式化服务
以这种方式格式化服务
jsonFlickrFeed({ "title": "Uploads from everyone","link": "http://www.flickr.com/photos/","description": "","modifi ... })
NSJSONSerialization似乎无法开展工作
NSURL *jsonUrl = [NSURL URLWithString:@"http://d.yimg.com/autoc.finance.yahoo.com/autoc?query=yahoo&callback=YAHOO.Finance.SymbolSuggest.ssCallback"]; NSError *error = nil; NSData *jsonData = [NSData dataWithContentsOfURL:jsonUrl options:kNilOptions error:&error]; NSMutableDictionary *jsonResponse = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingAllowFragments error:&error]; NSLog(@"%@",jsonResponse);
使用最新的Web API我解决了我的问题.
原文链接:https://www.f2er.com/json/288487.html作为参考,旧的Web API是:
http://api.flickr.com/services/feeds/photos_public.gne?id=xxxxxxxx&lang=en-us&format=json
当前的Web API是:
http://api.flickr.com/services/feeds/photos_public.gne?id=xxxxxxxx&lang=en-us&format=json&nojsoncallback=1
完成.