Fix json detection in response

Mime type for json can be 'appication/vnd.xxx+json' or even 'text/json'.