I had some 1.2 code that got converted to 2.0 today. However, it appears I need to add more indention to handle it. Not sure if there is a better way:
do {
let orders = try NSJSONSerialization.JSONObjectWithData(d, options: NSJSONReadingOptions())
if let orders = orders as? [[String: AnyObject]] {
...
I use to have a single if let ... statement here where I combined asking for the jsonObject with "as? [[String: AnyObject]]"
Is there a better way to do this or is what I have here the right way to do it?