Tiny middleware to figure out if a JSON response is expected