import json


def loadJSONFromFile(filename):
    """A generic function to read a JSON file.
       Args:
         filename: The full filename for the JSON file
       Returns:
         The object loaded from JSON
    """
    jsonFile = open(filename, "r")
    theObject = json.load(jsonFile)
    jsonFile.close()
    return theObject