In my current project when using Decodable we have the problem of models that look like this:
{
"beers": [ {...} ]
}
the solution to solve this is to have something like this:
struct BeerList : Codable {
let beers: [Beer]
}
My question is there way to parse this avoid this BeerList Struct ? And simply return an array of [Beer].
BTW the example I'm giving here is not the real one you can also find it here https://benscheirman.com/2017/06/swift-json/