Node.js how to read json data from request?
<p>I have a server as following:</p>

<pre><code>app.post('/', function(req, res, next) {
   console.log(req);
   res.json({ message: 'pppppppppppppssssssssssssss ' });   
});
</code></pre>

<p>The request is sent from a client as:</p>

<pre><code>$.ajax({
    type: "POST",
    url: self.serverURI,
    data: JSON.stringify({ "a": "128", "b": "7" }),
    dataType: 'json',
    success: function (result) {
        console.log(result);
    },
    error: function (xhr, ajaxOptions, thrownError) {
        console.log(xhr);
    }
});
</code></pre>

<p>so far the connection fine. </p>

<p>My problem is in the server:</p>

<pre><code>console.log(req);
</code></pre>

<p>where I want to read the data I sent. How can I read <code>{ "a": "128", "b": "7" }</code> from <code>req</code>?</p>