public static JSONObject parseFile(File f) throws FileNotFoundException, IOException
    {
        BufferedReader r = new BufferedReader(new FileReader(f));
        String text = "";
        while (r.ready())
        {
            text += r.readLine();
        }
        text = cleanString(text);
        return parseObject(text);
    }