What would be the best option for:
-
URL Request
- NSURLConnection
- ASIHTTPRequest
- AFNetwork
-
JSON Parsing
- NSJSONSerialization
- SBJSON
I have picked ASIHTTPRequest+NSJSONSerialization, but I am not quite sure! Any idea(s) or suggestion(s)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Features wise, AFNetworking > ASIHTTPRequest > NSURLConnection. ASIHTTPRequest is not supported anymore. It’s a closed project. NSURLConnection is apple-provided so it’s barebones. AFNetworking is still an active project and from the talk of my colleagues here in SO, it’s getting better.
NSJSONSerialization is Apple-provided and SBJSON is third party again.SBJSON gives your a better/easier interface to convert data objects in either formats (Foundation <–> JSON).
BUT – things majorly depend on what you want to get out of your project and what the requirements are. Each of these projects has it’s advantages and disadvantages. You just need to research each of these frameworks and choose the best that suits your project. Also, there are tons of resources here on SO that help you decide what to pick.