function readJSON(dir, file) {
    try {
        return JSON.parse(fs.readFileSync(path.join(__dirname, dir, file)).toString());
    } catch(e) {
        throw new Error("Error reading "+file+" in "+dir+": "+e.message);
    }
}
Simple function to read in JSON
@param {string} dir - Directory containing JSON file
@param {string} file - Name of JSON file (relative to directory)
@returns {Object} Parsed JSON object