title: How to read Blob (octet-stream) to JSON object?
body: <p>From a http request, a <strong>blob</strong> (b) (type <em>application/octet-stream</em>) is downloaded and then needs to be processed, it <strong>contains a json object</strong>.</p>
  
  <p>I tried the following:</p>
  
  <pre><code>var reader = new FileReader();
  reader.readAsText(b);
  var readResult = &lt;string&gt; reader.result;
  console.log(readResult);
  var obj = JSON.parse(readResult);
  </code></pre>
  
  <p>It doesn´t work, and readResult is null. </p>
  
  <p>How can you process a blob that contains a json into a json object?</p>