title: Cannot Subscript Value of Type JSON to an Index of Type JSON Error in Swift
body: <p>I am using Wunderground to gather history data, using SwiftyJSON. However, in the API, a section called "dailysummary" is curtained off in an array. Abbreviated, it looks something like this:</p>
  
  <pre><code>"history": {
      "dailysummary": [{
          "stuff": "here"
      ]}
  </code></pre>
  
  <p>I had tried to isolate the content inside the array with this:</p>
  
  <pre><code>var jsonData = json["history"]["dailysummary"]
  var arrayData = json["history"]["dailysummary"][0]
  jsonData = json["history"]["dailysummary"][arrayData]
  </code></pre>
  
  <p>This code returns an error saying it <code>cannot subscript a value of type 'JSON' with an index of type 'JSON'</code>. Is there any way to make this work, or a way to get the data from to array in this format?</p>