I'm trying to process a JSON object, using a guard
statement to unwrap it and cast to the type I want, but the value is still being saved as an optional.
guard let json = try? JSONSerialization.jsonObject(with: data) as? [String:Any] else {
break
}
let result = json["Result"]
// Error: Value of optional type '[String:Any]?' not unwrapped
Am I missing something here?