Different console output data via NSData and Data (Xcode 8 beta 6, Swift 3)
<p>I write a little snippet of usual code but found that my code don't return hex data from server with this line of code:</p>

<pre><code>let currentData = try! Data(contentsOf: fullURL!)
print("currentData=", currentData)
</code></pre>

<p>And the output:</p>

<pre><code>currentData= 24419 bytes
</code></pre>

<p>I tried to use Leo's comment link:</p>

<p>stackoverflow.com/q/39075043/2303865</p>

<p>I got something hex data without spaces, and validator (<a href="http://jsonprettyprint.com" rel="nofollow">http://jsonprettyprint.com</a>) can't recognise it and returns null.</p>