Getting json body in aws Lambda via API gateway : <p>I'm currently using NodeJS to build a bot on AWS lambda via AWS Api Gateway and I'm running into an issue with POST requests and JSON data. My api uses 'Use Lambda Proxy integration' and even when I test the proxy sending a content-type of Application/json and some json in the body e.g <code>{"foo":"bar"}</code> I can't access the object without parsing it first</p>

<p>e.g</p>

<pre><code>  var json = JSON.parse(event.body);
  console.log(json.foo);
</code></pre>

<p>Now I know this doesn't seem a big deal just running it through JSON.parse, but I've seen a number of other examples where this isn't the case at all. see here <a href="https://github.com/pinzler/fb-messenger-bot-aws-lambda/blob/master/index.js" rel="noreferrer">https://github.com/pinzler/fb-messenger-bot-aws-lambda/blob/master/index.js</a></p>

<p>Do I need to add anything to my API gateway to handle this correctly? my 'request body' step in the 'post method request' section has a content-type of application/json set-up for the request body. </p>

<p>The readme for the example above doesn't seem to use proxy integration as far as I can tell so I'm not sure what I should be doing here</p>
