title: Serverless Framework Python lambda return JSON directly
body: <p>I'm trying to find out how can I return the response as a JSON directly using Serverless Framework.
  This is a function on AWS with Lambda Proxy Integration. All default setting.
  The goal is to from the python lambda function, the HTTP response client gets is directly a JSON object, instead of a string serialization of a JSON.</p>
  
  <p>The python handler is as simple as this one</p>
  
  <pre><code>    def handle(event, context):
          log.info("Hello Wold")
          log.info(json.dumps(event, indent=2))
          return {
              "statusCode": 200,
              "body": {"foo": "bar"},
              "headers": {
                  "Content-Type": "application/json"
              }
          }
  </code></pre>
  
  <p>The function looks like this:</p>
  
  <pre><code>    functions:
        report:
          handler: handler.handle
          events:
            - http:
                path: api/mypath
                method: post
                authorizer: aws_iam
  </code></pre>
  
  <p>With these configurations, the response BODY I get in Postman is:</p>
  
  <pre><code>    {
          "statusCode": 200,
          "body": {
              "foo": "bar"
          },
          "headers": {
              "Content-Type": "application/json"
          }
      }
  </code></pre>
  
  <p>So this is strange, why I get everything as body? How do I configure it properly so that I  only get the "real" body?</p>