only parses json if content type includes application/json