O'Reilly logo

Hands-On Full Stack Web Development with Aurelia by Erikson Haziz Murrugarra Sifuentes, Diego Jose Arguelles Rojas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring the JSON Parser

We will start by configuring our server to be able to parse JSON. This means that Express.js will automatically parse the data that flows in and out of the HTTP Request. The following diagram explains this:

As you can see, all the requests will be intercepted by the JSON Parser. The JSON Parser is better known as a middleware. A middleware is just a simple function that is processed before another function. For example, the GET /teams function is supposed to be the only function that should be called in every request, but as we have configured the JSON Parser, the GET /teams will be invoked once the JSON Parser ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required