Welcome to the Treehouse Community
Looking to learn something new?
Jamie Baker5,703 Points
why is option not taking nil as its argument?
let weatherDic: NSDictionary = NSJSONSerialization.JSONObjectWithData(dataObject, options: nil, error: nil)
the error points to "options: nil" and says cannot convert the expression's type (NSData? options: NilLiteralConvertible error: NilLiteralConvertible) to type NilLiteralConvertible.
Any help hugely appreciated!
Brandon Mowat8,186 Points
I think that's just the default value for "options". Are you trying to resolve your error? or just curious?