0

I am building an iOS app in Objective-C to track locations and I have 3 mutable arrays called time stamp, latitude and longitude. Now I need to pass these values to the django server in order to get locations back from the server.

How can I convert these values to a JSON? Also, my values are being dynamically updated depending on change in location.

Cristik
  • 28,596
  • 24
  • 84
  • 120
Praveen Gupta
  • 45
  • 1
  • 1
  • 3
  • Possible duplicate of [Convert NSArray into array of JSON objects](http://stackoverflow.com/questions/13961590/convert-nsarray-into-array-of-json-objects) – Teja Nandamuri Jan 04 '16 at 19:30
  • Does your Django server have any requirements of the data you send to it? E.g. a certain json format? – Cristik Jan 04 '16 at 20:17

1 Answers1

0

NSJSONSerialization can serialize any Plist compliant object. ([NS]Array/Dictionary/String/Number/Date/Data)

Avba
  • 13,954
  • 15
  • 87
  • 165