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 ) ) ; }
Decode a JSON document to retrieve an integer value .