JsonPathValue(CharSequence expression, Object... args) { org.springframework.util.Assert.hasText( (expression == null ? null : expression.toString()), "expression must not be null or empty"); this.expression = String.format(expression.toString(), args); this.jsonPath = JsonPath.compile(this.expression); }