How to convert req.body to string?
<p>I'm attempting to save req.body to a string in node however whenever I do console.log(req.body.toString) the output is [object Object]. Any idea on what i could be doing wrong?</p>

<pre><code>var express = require('express');
var app = express();
var fs = require("fs");
var bodyParser = require("body-parser");
app.use(bodyParser.urlencoded({extended:false}));
app.use(bodyParser.json());

app.post('/addUser', function (req, res) {
    console.log(req.body.toString());
    res.end("thanks\n");
})
</code></pre>

<p>Output is:</p>

<p><code>[object Object]</code></p>

<p>When using JSON.stringify the output is:</p>

<pre><code>" [object Object] "
</code></pre>