Converting an NSArray of Dictionaries to JSON array in iOS

后端 未结 8 1093
逝去的感伤
逝去的感伤 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:20

    First You must change you structure into NSDictionary class and NSArray containing NSDictionary objects, then try JSONKit in iOS 5 serialization works better than standard NSJSONSerialization.

提交回复
热议问题