开发者

Simple Webservice that outputs JSON

I want to build a simple web service that outputs JSON to test a parser on iPhone.

I have considered using public apis like twitter etc but I want to use a custom JSON text for a small proof of concept test.

I am using a MAC with Apache. I got the web server up and I can access an HTML page say开发者_如何学JAVAing Hello World from 127.0.0.1 Can someone guide me as to how can I modify the HTML such that when I post a NSURLRequest, all I get back is JSON text. Not JSON in HTML/XML but plain JSON text. Something like -http://twitter.com/statuses/public_timeline.json

Any leads much appreciated.

Thanks Dev.


Got it right here - http://www.youtube.com/watch?v=7k-suIGS_1k

Just in case some one else is looking for the same thing.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜