I'm trying to get this code cleaner, it does display on the html page.
app.get("/web/users", function(req, res) {
var users = app.models.users.model('User');
users.find({}).lean().exec(function(err, result){
res.write(JSON.stringify(result));
res.end();
This does work, and it lists something like this...
[{"_id":"...","name":"Justin","phonenumber":"5555555555","useSMS":true,"callerId":["..."],"PIN":"..."}]
Now, I would like this code to display like this...
Justin 5555555555
result.nameandresult.phonenumber