开发者

Formatting an array into JSON

I am working on an iPhone application. I have to send a POST request to a server in the JSON format. I found the following question: How would I send my array over a HTTP POST to the server?, with good comments suggesting the following URL had a solution: 开发者_开发知识库http://andyj.be.s79833.gridserver.com/blog/?p=65

However, this URL now no longer exists. Please provide me any help for posting JSON format data in the form of an associative array or provide any other help.


If you are targeting iOS 5.0, you can use Apple's NSJSONSerialization class to turn an NSArray into a JSON string.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜