def METHOD_NAME(location):
    """
    Return a Package object from a haxelib.json file or None.
    """
    if not is_haxelib_json(location):
        return
    with io.open(location, encoding='utf-8') as loc:
        package_data = json.load(loc)
    return build_package(package_data)