title: What's Unit8Array in AWS S3 bucket response
body: <p>I am calling the AWS S3 getObject function: <code>(AWS.Request) getObject(params = {}, callback)</code></p>
  <p>I wrote this:</p>
  <pre><code>getMenuJson() {
     this.s3.getObject({
       Bucket: 'improd-image-pipeline',
       Key: 'remoteUX/qa/menus/v1/menus.json',
       ResponseContentType: 'application/json',
     }, (err, data) =&gt; {
       if (err) {
         this.$log.log(err);
       } else {
         this.$log.log(data, JSON.parse(data.Body));
       }
     });
   }
  </code></pre>
  <p>This is the console output, I try to print the data and the actual menus.json file on the S3 console.
  <a href="https://i.stack.imgur.com/wQVWU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wQVWU.png" alt="enter image description here" /></a></p>
  <p>The return data if I printed like this: JSON.parse(data.Body), this is the result.</p>
  <pre><code> {  
     &quot;menus&quot;:[  
        {  
           &quot;name&quot;: &quot;Flat Collections Example&quot;,
           &quot;menuId&quot;: &quot;aaa-3656-4a32-bdda-e2e016cf35ee&quot;
        },
        {  
           &quot;name&quot;:&quot;P3&quot;,
           &quot;menuId&quot;: &quot;aaa-f5fc-4e18-9089-47e43a4237e8&quot;
        },
        {  
           &quot;name&quot;: &quot;Tabbed Menu Example&quot;,
           &quot;menuId&quot;: &quot;aaa-768a-40bd-a9f4-b633f3679c36&quot;
        }
     ]
  }
  </code></pre>
  <p>But, how to understand the response body: Unit8Array, and how it's interpreted to a actual json formatted data?</p>
  <p><strong>I am using Angular.toJson(data.Body) and this function didn't understand it, but JSON.parse(data.Body) will get the correct result.</strong></p>