code: public static JSONArray parseArray(InputStream is, Charset charSet) throws IOException {
          return (JSONArray)parse(is, charSet);
      }
docs: Parse a sequence of characters from an {@link InputStream} as a JSON array, specifying
  the character set.
  
  @param   is      the {@link InputStream}
  @param   charSet the character set
  @return          the JSON array
  @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 array