middleware for receiving gzipped json