I am in the process of building my first iPhone app (xCode,objective-c) which has to communicate with an existing website using either a web service or WCF service. I have looked primarily at using a WCF service hosted in the website which can send and receive JSON (making it lightweight as opposed to the overhead of SOAP). However I am finding it increasingly difficult to get things working on the iPhone side without having to use various 3rd party wrappers such as the JSON Framework and ASIHTTPRequest.
Can somebody tell me if I am going in the right direction and using the right tools as this seems awfully complicated for something which I thought would have been relatively straight forward. Maybe it’s because I am used to .NET C# where lots of this stuff is done for you out of the box.
ie If I were to send back to my service the following piece of JSON taken from the following example JSON example
{
"firstName": "John",
"lastName": "Smith",
"age": 25,
"address": {
"streetAddress": "21 2nd Street",
"city": "New York",
"state": "NY",
"postalCode": "10021"
},
"phoneNumber": [
{ "type": "home", "number": "212 555-1234" },
{ "type": "fax", "number": "646 555-4567" }
]
}