@ Override public JsonNode visit ( JmesPathNotExpression notExpression , JsonNode input ) throws InvalidTypeException { JsonNode resultExpr = notExpression . getExpr ( ) . accept ( this , input ) ; if ( resultExpr != BooleanNode . TRUE ) { return BooleanNode . TRUE ; } return BooleanNode . FALSE ; }
Not - expression negates the result of an expression . If the expression results in a truth - like value a not - expression will change this value to false . If the expression results in a false - like value a not - expression will change this value to true .