A middleware for deserializing data in the body of the request