Swift 4 - JSON parsing with Codable protocol (nested data)
问题 I am trying to update myself and use modern and recent Swift 4 features. That is why I am training with the Codable protocol in order to parse JSON and directly map my model object. First of all, I did some research and self learning. This article helped me a lot : Ultimate guide I just need to focus on the "Com" array. As you can notice, it contains some nested object. I named them Flash Info. It is defined by : endDate text image[] title productionDate id So here is my Codable Struct :