import json


def load_es_query(es_query_path):
    """Load the ElasticSearch query json file.

    Args:
        es_query_path (str): The path to the ES query json file which is used for making subscription in BlueBox.

    Returns:
        query_obj (dict): A dict of loaded es query content.
    """
    with open(es_query_path, 'r') as query_file:
        query_obj = json.load(query_file)
    return query_obj