import json


def readJSONFile(filename):
    """ Reads a named JSON file and retrieves the document from it.

    Parameters
    ----------
    filename : str
        name of the file

    Returns
    -------
    response
        the JSON document read from the file
    """
    filename='data/'+filename
    with open(filename) as json_file:
        response=json.load(json_file)
    return response