Select Page

Parsing JSON into Swift Objects

One of the kind of neat, newer features in Swift is that you can create classes that are Codable. In the app, I get some JSON from the server. Here’s the abridged JSON: { data = { "can_access_orders" = 1; "can_access_reports" = 1; }; message = ""; status = 200; }...