code: public int readInt(InputStream in) throws ConversionException, IOException {
          JSONArray json = parseArray(in);
          if (json.size() != 1) {
              throwConversionException("readInt() expects one item in the array: [ Integer ].", json);
          }
          return readIntInternal(json.get(0));
      }
docs: Decode a JSON document to retrieve an integer value.
  
  @param in The stream to read JSON from
  @return The decoded integer value
  @throws ConversionException If JSON uses unexpected structure/format
  @throws IOException If an I/O error occurs or if JSON is ill-formed.
  @see #writeInt(OutputStream, int)