How to parse JSON in Swift 5 (with Codable)

Parsing JSON it's a task that you will need to implement almost in every project that interacts with a REST API . For this example, we are going to use Twitter API to get statuses class. { "created_at": "Wed Oct 10 20:19:24 +0000 2018", "id": 1050118621198921728, "id_str": "1050118621198921728"…