Good morning I would like you to help me please, I have a web service in Swift 2 returns an array like that
{"message": "Successfully Stored Image." "error": false}
but at the time of serializing it
do{
let json = try NSJSONSerialization.JSONObjectWithData(nsdata, options: NSJSONReadingOptions.MutableContainers)
}catch{
print(error)
}
shows me the following error:
{Error Domain = NSCocoaErrorDomain Code = 3840 "JSON text did not start with array or object and option to allow fragments not set. "}