public boolean readBoolean ( InputStream in ) throws ConversionException , IOException { JSONArray json = parseArray ( in ) ; if ( json . size ( ) != 1 ) { throwConversionException ( "readBoolean() expects one item in the array: [ true | false ]." , json ) ; } return readBooleanInternal ( json . get ( 0 ) ) ; }
Decode a JSON document to retrieve an boolean value .