title: aws lambda return json data with slashes
body: <p>i need to print a json data using aws lambda. this is my code</p>
  
  <pre><code>'use strict';
  console.log('Loading function');
  
  exports.handler = (event, context, callback) =&gt; {
  
    var addon = require('./path/to/addon');
    var sampleData=addon.getSampleData(userId);
    console.log(sampleData); // it will print correct json data
    //var sampleData="{ \"data\":{ \"key1\": \"1472722877992\", \"key2\": [ 814, 809] }}";
  
     callback(null, sampleData);
  };
  </code></pre>
  
  <p>i got output like this</p>
  
  <pre><code>"{ \"data\":{ \"key1\": \"1472722877992\", \"key2\": [ 814, 809] }}"
  </code></pre>
  
  <p>Bu  i need to get output like this</p>
  
  <pre><code>"{ "data":{ "key1": "1472722877992", "key2": [ 814, 809] }}"
  </code></pre>
  
  <p>in this code, i created a npm library  <strong><em>addon</em></strong> using c++ code.  and <strong><em>getSampleData</em></strong> is a method inside c++ code. it will return a json formated string(not a json object) .in my node.js code, console log print 
  correct json string.</p>
  
  <p>But executing this lambda function returnd output with Slashes. How to solve this issue.</p>