remove default file name 'json' from request url, check for malformed json