title: How to receive the data that is being passed from client app to the jsreport server
body: <p>I am trying to generate a pdf report from my angular app connecting to jsreport.  My client app is doing a POST call by passing a sample data to the report server in this way.</p>
  
  <pre><code> $http.post('http://localhost:5488/api/report', {
        'template': {
          'shortid': 'SypJSv75e',
          "data": {"name": "John Doe"}
        }
      })
      .success(function (response) {
       console.log(response)
      });
  </code></pre>
  
  <p>As you see in the above code that I am passing {"name": "John Doe"} to the report server. </p>
  
  <p>On the report server, this is the code that I have in the custom scripts section.</p>
  
  <pre><code>function beforeRender(req, res, done) {
  req.data.generatedOn = new Date();
  done();
  }
  </code></pre>
  
  <p>How do I receive the data in the jsreport that is being passed from client app?</p>