MIT Licensed.
npm install express-jsonq
What is express-jsonq?
express-jsonq is a light-weight Expressjs Middleware plugin that parses the query string as JSON and exposes it to your router.
Suppose you want have a WebAPI handles the query param string as JSON, how to achieve this?
Let's look at what a route might look like:
/api/users/?{id: 001}
Without express-jsonq, you have to do some additional logic to get that id. You might try this:
var router = url = ; router;
But what if you want to that in a lot of different places? Instead of duplicating code you can use a middleware.
Installation
npm install express-jsonq
Basic Usage
var express = jsonq = app = ; app; app; app;
Explicit Usage
router;