I have a list of custom objects. Every property in a custom objects is of type String. I have a problem to convert that list of objects to JSON string so I can send it to web service:
var bytes = NSJSONSerialization.dataWithJSONObject(data, options: NSJSONWritingOptions.allZeros, error: nil)
var jsonObj = NSJSONSerialization.JSONObjectWithData(bytes!, options: nil, error: nil) as! [Dictionary<String, String>]
data is a list of objects. This should be simple thing to do and I list two days on it.
NSDataobject, so then you can create aStringobject from dataNSJSONSerialization.JSONObjectWithData.