parsing the result now attempts to create a JSON dict if the content type is anything/javascript