Converting an NSArray of Dictionaries to JSON array in iOS

后端 未结 8 1163
逝去的感伤
逝去的感伤 2020-12-13 08:09

I need to send an NSArray to the server in the JSON array format. How can I convert it to JSON. This is a sample of my NSArray

8条回答
  •  星月不相逢
    2020-12-13 08:22

    Is the service you are calling a RESTful service?

    If so, I'd strongly recommend using RestKit. It does object serialization/deserialization. It also handles all the networking underpinnings. Extremely valuable, and well maintained.

提交回复
热议问题