code: public static JSONObject parseObject(File f, Charset charSet) throws IOException {
          return (JSONObject)parse(f, charSet);
      }
docs: Parse the contents of a {@link File} as a JSON object, specifying the character set.
  
  @param   f       the {@link File}
  @param   charSet the character set
  @return          the JSON object
  @throws  JSONException if the file does not contain a valid JSON value
  @throws  IOException on any I/O errors
  @throws  ClassCastException if the value is not an object