Using Freddy to deserialize a list of strings
<p>I'm experimenting with Freddy in Swift:</p>

<p><a href="https://github.com/bignerdranch/Freddy" rel="nofollow noreferrer">https://github.com/bignerdranch/Freddy</a></p>

<p>And am trying to deserialize a list of strings.  My Json looks something like this:</p>

<pre><code>{
    "types": ["A", "B", "C"],
}
</code></pre>

<p>Here's the swift code:</p>

<pre><code>import Freddy

struct Config {
    let types: [JSON]
}
extension Config: JSONDecodable {
    public init(json: JSON) throws {
        types = try json.getArray(at: "types")
    }
}
</code></pre>

<p>This all seems to load correctly, but I'm not able to get the list of strings as an actual array of strings - they are an array of type JSON.  What do I do from here to map these into strings?</p>