Closed Cyfirr closed 8 years ago
Yup the API for NSJSONSerialization
changed with the release of Swift 3. There'll be a compatible release soon! @Nadohs
Sorry, using forked version, not exactly a case here. Can be safely closed. Thanks for the answer!
Hi Matthew,
excuse me if I am wrong (I am fairly new to Swift), but it seems to me that this line is a problem in JSONString(line 19):
let json = try toJSON() as! AnyObject
I understand that you use it later for NSJSONSerialization, but toJSON returns Any which cannot be casted toAnyObject.
Is it a bug of the Codable library or do you have any workaround in mind?
Thanks, Anatoli