title: NSDictionary in Swift:Cannot subscript a value of type 'AnyObject?' with a index of type 'Int'
body: <p>So I am trying to parse some data in JSON using swift. below is my code</p>
  
  <pre><code>var jsonResult:NSDictionary! = NSJSONSerialization.JSONObjectWithData(data, options: NSJSONReadingOptions.MutableContainers, error: nil) as! NSDictionary
  
  println(jsonResult)
  </code></pre>
  
  <p>
   The above code will return something like this 
  </p>
  
  <pre><code>{
   count = 100
   subjects = (
          {
           alt = "....."
           name = "....."
           },
           {
           alt = "....."
           name = "....."
           },
  
           ......
           )
  }
  </code></pre>
  
  <p>
  Then I try to access all the subjects with <code>jsonResult["subjects"]</code>, so far so good
  But when I try to access the individual subject, for example <code>jsonResult["subjects"][0]</code>, Xcode gives me error:
  <code>Cannot subscript a value of type 'AnyObject?' with an index of type 'Int'</code>
  Can someone help me with this?</p>