How can I parse this JSON object using Swift 3.0
<p>I'm trying to parse a JSON string returned from a new API. The returned JSON string looks like this.</p>

<pre><code>QuerySearchResult":{
"StartAt":"1",
"Count":"40",
"TotalAvailable":"500",
"Items":[
    {"TITLE":"OST420 Generation",
    "PATH":"http:\\Test.pdf",
    "WRITE":"2016-12-12T15:47:42",
    "RANK":"32286574",
    "SIZE":"145091",
    "ISDOCUMENT":"true",
    "ID":"18548",
    "WPTASK":"Onsite Generation",
    "WPDOCTYPE":"Local Operating Procedure",
    "WPDOCREFID":"304580",
    "WPCONTENTTYPE":"Document"},
    {"TITLE":"OST420 Measurement",
    "PATH":"http:\Test33.pdf",
    .
    .
</code></pre>

<p>I'm using the code below which accepts the JSON variable but fails when I try to load item. I've tried using <code>Array</code> around <code>Dictionary</code> but it still fails. What declaration do I need to read in Items?</p>

<pre><code>if let json = try JSONSerialization.jsonObject(with: data!, options:.allowFragments) as? Dictionary&lt;String, AnyObject&gt; {
   for item in json {
      if let dict = item as? Dictionary&lt;String, AnyObject&gt; {
         if let items = json["Items"] as? Array&lt;Dictionary&lt;String, AnyObject&gt;&gt; {
            for rec in items {
               if let title = rec["TITLE"] as? String {
                  let xx = title
               }
            }
        }
   }
}
</code></pre>