NoTask - fixed method name and added new middleware

* Fixed method name as was duplicated
* Refactored middleware and added request middleware to encode json