作者zonble (zonble)
看板MacDev
标题Re: [问题] iPhone平台上的json问题
时间Mon Aug 23 20:20:23 2010
※ 引述《terry0629 (德仔)》之铭言:
: 我在google有查到google dictionary有个非官方的API
: http://www.google.com/dictionary/json?callback=dict_api.callbacks.id100&q=test&sl=en&tl=en&restrict=pr%2Cde&client=te
: 这页的资料来源也是用json表示 如果我想从中取出我要的这单字的意思跟例句我该如何
: 做呢?
1. 用 NSURLConnection 抓资料,如果你不喜欢 NSURLConnection,
也可以用 ASIHTTPRequest
http://allseeing-i.com/ASIHTTPRequest/
或是我们公司的 LFHTTPRequest
http://github.com/lukhnos/LFWebAPIKit
2. 随便找一套 JSON Parser 去 parse 资料,例如
http://github.com/blakeseely/bsjsonadditions
Facebook 有弄另外一套
http://github.com/facebook/three20/tree/master/src/extThree20JSON/
另外还有一大堆,Google 一下就有。
--
zonble.net
cocoa.zonble.net
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.128.103.143
1F:推 LewisHamiltn:是zonble 有神快拜! 08/23 20:32