title: Why are the values of my JSON objects keys undefined?
body: <p>I need to parse JSON, but the values of the objects keys are undefined:</p>
  <pre><code>   const MY_JSON_FILE = &quot;{ \&quot;version\&quot;: \&quot;1.0\&quot;, \&quot;result\&quot;: 4, \&quot;id\&quot;: \&quot;1\&quot; }\x00&quot;
      
       
      
      let json = JSON.stringify(MY_JSON_FILE);
      
       
      
      const blob = new Blob([json], {type:&quot;application/json&quot;});
      
       
      
      const fr = new FileReader();
      
       
      
      var res;
      
      fr.onload = () =&gt; {
      
        console.log('done', fr.readyState);
      
        console.log('reader result: ', fr.result);
      
        res = JSON.parse(fr.result);
      
       
       console.log(Object.keys(res));
      
        console.log('parsed: ' + res);
      
        console.log(res.id);
      
        console.log(res.result);
      
        console.log(res.version);
      
      }
      
      fr.readAsText(blob);
  </code></pre>
  <p>The values of my objects keys are undefined after parsing. How can I parse and access the values of my objects keys successfully?</p>