How to decode a JSON property with different types? [duplicate]
This question already has an answer here: What Is Preventing My Conversion From String to Int When Decoding Using Swift 4’s Codable? 1 answer I have a JSON { "tvShow": { "id": 5348, "name": "Supernatural", "permalink": "supernatural", "url": "http://www.episodate.com/tv-show/supernatural", "description": "Supernatural is an American fantasy horror television series created by Eric Kripke. It was first broadcast on September 13, 2005, on The WB and subsequently became part of successor The CW's lineup. Starring Jared Padalecki as Sam Winchester and Jensen Ackles as Dean Winchester, the series