Swift 3 looping JSON data
<p>I'm attempting to loop through a JSON array sending data to a struct.</p>

<p>Here's my code that uses SwiftyJSON to return a <code>JSON</code> object:</p>

<pre><code>performAPICall() {
    json in
    if(json != nil){
    print("Here is the JSON:")
    print(json["content"]["clients"])

        let clients = json["content"]["clients"]
        for client in clients {
            var thisClient = Client()
            thisClient.id = client["id"].string
            thisClient.desc = client["desc"].string
            thisClient.name = client["name"].string
            self.clientArray.append(thisClient)
    }
    self.tableView.reloadData()
    } else {
        print("Something went very wrong..,")
    }
}
</code></pre>

<p>I'm not quite sure why I'm getting "has no subscript" errors on the three strings. </p>

<p>Any help appreciated, thanks.</p>

<p><strong>EDIT:</strong> Here's a sample of the JSON</p>

<pre><code>{
    "content": {
        "clients": [{
            "group": "client",
            "id": "group_8oefXvIRV4",
            "name": "John Doe",
            "desc": "John's group."
        }, {
            "group": "client",
            "id": "group_hVqIc1eEsZ",
            "name": "Demo Client One",
            "desc": "Demo Client One's description! "
        }, {
            "group": "client",
            "id": "group_Yb0vvlscci",
            "name": "Demo Client Two",
            "desc": "This is Demo Client Two's group"
        }]
    }
}
</code></pre>