I'm fetching data from an API but this API has a small problem inside location JSON Object, it contains a variable called postcode and this variable can be either a String or a Int.
I have to handle this problem locally, If I set var postcode: String I get an error when this value is  Int and if I set var postcode: Int I get an error when this value is a String
so I tried to set var postcode: Any but the following problem occurs...
it when I set this value it doesn't conform to Codable protocol...
when I return the way it was before....
I got no errors BUT it doesn't handle my problem with the API.
what am I missing here?
thank you in advance for the answers..


 
    