Formatting an array in JSON

I am working on an iPhone application. I have to send a POST request to the server in JSON format. I found the following question: How can I send my array via HTTP POST to the server? , with good comments suggesting that the following URL had a solution: http://andyj.be.s79833.gridserver.com/blog/?p=65

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

+1
source share
1 answer

If you're targeting iOS 5.0, you can use the Apple class NSJSONSerializationto turn NSArrayJSON into a string.

0
source

All Articles