express-gson
v0.1.0
Published
Encode/decode circular javascript object graphs in express request/response
Downloads
78
Maintainers
Readme
express-gson
Encode/decode circular javascript object graphs in express request/response
Installation
$ npm install body-parser
API
var express = require('express'),
bodyParser = require('body-parser'),
gson = require('express-gson');
var app = express();
app.use(bodyParser());
// decoded!
app.use(gson());
app.post('/echo',function (req, res)
{
console.log(req.body) // populated!
res.send(req.body); // encoded!
})