import json


def check_file_is_valid_json(path):
    """Checks if file contains valid json

    :param str path: path to json file
    :returns: True if valid False if invalid
    """
    try:
        json.load(open(path, 'r'))
    except (ValueError, IOError):
        return False

    return True