Implemented jsonParser middleware
Refactor middlewares