code: public static JSONObject parseObject(InputStream is, String csName) throws IOException {
          return (JSONObject)parse(is, csName);
      }
docs: Parse a sequence of characters from an {@link InputStream} as a JSON object, specifying
  the character set by name.
  
  @param   is      the {@link InputStream}
  @param   csName  the character set name
  @return          the JSON object
  @throws  JSONException if the stream does not contain a valid JSON value
  @throws  IOException on any I/O errors
  @throws  ClassCastException if the value is not an object