let json = JSON(response.result.value!)
let things = json.array.map { jsonThing in
Thing()
}!
json.array
returns an array of one hundred JSON
s. After the call to map
, I end up with a single Thing
.
Why don't I have a new array of Thing
s?