import pathlib
import json


def get_json_fixture_file(filename):
    """
    Return JSON fixture from local file
    """
    path = pathlib.Path(__file__).parent.parent / f"fixtures/{filename}"
    content = pathlib.Path(path).read_text('UTF-8')
    return json.loads(content)