title: Serverless offline response issue while sending JSON response in lambda function
body: <pre><code>var result = [{
                  count : 10,
                  data : [{"id":11,"id":22}]
                 }];
  var response = {
                  statusCode: 200,
                  count: result.length,
                  body: result
              };
              callback(null, response);
  </code></pre>
  
  <p><strong>Error on Console</strong></p>
  
  <blockquote>
    <p>According to the API Gateway specs, the body content must be
    stringified. Check your Lambda response and make sure you are invoking
    JSON.stringify(YOUR_CONTENT) on your body object</p>
  </blockquote>