def _fetch_remote_json(service_url, params=None, use_http_post=False):
if not params:<EOL><INDENT>params = {}<EOL><DEDENT>request_url, response = _fetch_remote(service_url, params, use_http_post)<EOL>if six.PY3:<EOL><INDENT>str_response = response.read().decode('<STR_LIT:utf-8>')<EOL>return (request_url, json.loads(str_response, parse_float=Decimal))<EOL><DEDENT>return (request_url, json.load(response, parse_float=Decimal))<EOL>
Retrieves a JSON object from a URL.