code: static public JSONArray parse(InputStream is) throws IOException {
          InputStreamReader isr = null;
          try
          {
              isr = new InputStreamReader(is, "UTF-8");
          }
          catch (Exception ex)
          {
              isr = new InputStreamReader(is);
          }
          return parse(isr);
      }
docs: Convert a stream of JSONArray text into JSONArray form.
  @param is The inputStream from which to read the JSON.  It will assume the input stream is in UTF-8 and read it as such.
  @return The contructed JSONArray Object.
  
  @throws IOEXception Thrown if an underlying IO error from the stream occurs, or if malformed JSON is read,