question: public static boolean readBoolean ( final JSONArray jsonArray , final int index , final boolean required , final boolean notNull ) throws JSONException { if ( required ) { return jsonArray . getBoolean ( index ) ; } if ( notNull && jsonArray . isNull ( index ) ) { throw new JSONException ( String . format ( Locale . US , NULL_VALUE_FORMAT_ARRAY , index ) ) ; } boolean value = false ; if ( ! jsonArray . isNull ( index ) ) { value = jsonArray . getBoolean ( index ) ; } return value ; }
target:  Reads the boolean value from the Json Array for specified index