value of type 'any' has no subscripts swift 5 code example Example: value of type any has no subscripts swift (people[0]["cars"] as! [[String: Any]]) [0]["occupancy"]