title: Why would Xcode 6.3 beta debugger show that Swift NSData has a byte count of 190 but no properties?
body: <p>In Xcode 6.3 beta running Swift 1.2 I have seemingly successfully retrieved a JSON object from an API, but the debugger is claiming that the object has no properties. The API is running on localhost and is called like this:</p>
  
  <pre><code>  NSURLConnection.sendAsynchronousRequest( request, queue: queue,
      completionHandler: completionHandler )
  </code></pre>
  
  <p><code>completionHandler</code> is a closure with a breakpoint in it:</p>
  
  <pre><code>let completionHandler =
  {
    ( response: NSURLResponse!, data: NSData!, error: NSError! ) -&gt; Void in
    // BREAKPOINT HERE
  }
  </code></pre>
  
  <p>The debugger shows that in Xcode 6.3 beta with Swift 1.2 <strong>data: NSData!</strong> is an ObjectiveC.NSObject of 190 bytes but with no properties, which seems flatly contradictory. I simply want the JSON data that I hope is hidden somewhere in those bytes. I do not know whether the debugger, or code that needs updating for Swift 1.2, or my understanding of things, or something else is to blame. I simply want the JSON.</p>
  
  <p><strong>Post-script</strong></p>
  
  <p>The JSON data was there all along, as the byte count suggested, and getting it was very simple (using SwiftyJSON):</p>
  
  <pre><code>let json = JSON( data: data )
  </code></pre>
  
  <p>Quite what has happened to the properties in the Xcode 6.3 beta debugger remains a mystery though. I'm not adding this as an answer to my own question, because whilst it <strong>works</strong> it might not necessarily be the <strong>answer</strong>. I am too new to Swift to know what the actual answer might be, or even if there is one.</p>