Parse JSON response with AFNetworking

后端 未结 4 1339
长情又很酷
长情又很酷 2020-12-09 19:18

I\'ve setup a JSON post with AFNetworking in Objective-C and am sending data to a server with the following code:

AFHTTPRequestOperationManager          


        
4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-09 20:06

    In this case, when the web service responds with JSON, the AFNetworking will do the serialization for you and the responseObject will most likely be either a NSArray or NSDictionary object.

    Such an object should be more useful for you than string with JSON content.

提交回复
热议问题