1// Update for Express 4.16+
2// Starting with release 4.16.0, a new express.json() middleware is available.
3var express = require('express');
4var app = express();
5
6app.use(express.json());
7
8app.post('/', function(request, response){
9 console.log(request.body); // your JSON
10 response.send(request.body); // echo the result back
11});
12
13app.listen(3000);