import json


def validate_nb_filter_params(filter_params):
    """
    Validate NetBox inventory filter parameters JSON file
    """
    # Ensure NetBox inventory filter parameters is present
    with open(filter_params, "r") as filepath:
        try:
            # Attempt to load the JSON data into Python objects
            json.load(filepath)
            return True
        except json.decoder.JSONDecodeError as exception:
            # Print specific file and error condition, mark failure
            print(f"{filter_params}: {exception}")
            return False