import requests
import json


def get_json_data(url):
    """Return a dict parsing a remote json file"""

    r = requests.get(url)
    try:
        return r.json()
    except json.JSONDecodeError:
        # Catch the Unexpected UTF-8 BOM error
        r.encoding='utf-8-sig'
        return r.json()