import json


def loadQueriesJSON(fileName):
    """
    Load query file (in JSON format).

    Parameters
    ----------
    fileName : str - location of file

    Returns
    ----------
    listOfQueries : list of queries
    """

    data = json.load(open(fileName))
    listOfQueries = data['listOfQueries']

    return listOfQueries