What wrong with json data parsing?
<p>I've tried to parse data using <code>resultsArray = [AnyObject]()</code> as well as <code>resultsArray = [JSON]()</code> both give me crashes</p>

<p>My data:</p>

<pre><code>data = (
      {
      id = 2141
      results =  (
                {
                city = Delhi;
                company = "AIR CREATOR";
                country = IN;
                },
                {
                city = Dubai;
                company = "Alwali";
                country = UAE;
                }
        );
    })
</code></pre>

<p>Now, when I parse I get crash at <code>reloadData</code>:</p>

<pre><code>if let val = data["results"] {
            let json = JSON(val)
            let array = json.arrayValue

            dispatch_async(dispatch_get_main_queue(), {
                for a in array{
                    self.resultsArray.append(a)
                }
                self.myTableView.reloadData()//&lt;--crash point
            })
        }
</code></pre>

<p><strong>When I print</strong></p>

<pre><code>print(self.resultsArray[0])
</code></pre>

<blockquote>
  <p>{   "city" : "Delhi",   "country" : "IN",   "company" : "AIR CREATOR"
  }</p>
</blockquote>

<pre><code>print(self.resultsArray[0]["country"])
</code></pre>

<blockquote>
  <p>IN</p>
</blockquote>