Fixed jpath result

master
M66B 2 weeks ago
parent 2669dfa936
commit 8c02cede0b

@ -3038,7 +3038,7 @@ The following extra operators are available:
* *contains* (string/array of strings contains substring) * *contains* (string/array of strings contains substring)
* *matches* (string/array of strings matches regex) * *matches* (string/array of strings matches regex)
* *startswith* / *endswith* (string/array of strings starting or ending with a string; since version 1.2333) * *startswith* / *endswith* (string/array of strings starting or ending with a string; since version 1.2333)
* *jpath* (string/array of JSON strings matching the [specified path](https://github.com/json-path/jsonpath); since version 1.2333) * *jpath* (array of strings matching the [specified path](https://github.com/json-path/jsonpath); since version 1.2333)
The following extra functions are available: The following extra functions are available:

@ -693,7 +693,7 @@ public class ExpressionHelper {
@Override @Override
public EvaluationValue evaluate( public EvaluationValue evaluate(
Expression expression, Token operatorToken, EvaluationValue... operands) { Expression expression, Token operatorToken, EvaluationValue... operands) {
Object result = null; List<String> result = null;
try { try {
if (operands.length == 2) { if (operands.length == 2) {

@ -1664,7 +1664,7 @@ X-Google-Original-From: Somebody &lt;somebody+extra@example.org&gt;</code></pre>
<li><em>contains</em> (string/array of strings contains substring)</li> <li><em>contains</em> (string/array of strings contains substring)</li>
<li><em>matches</em> (string/array of strings matches regex)</li> <li><em>matches</em> (string/array of strings matches regex)</li>
<li><em>startswith</em> / <em>endswith</em> (string/array of strings starting or ending with a string; since version 1.2333)</li> <li><em>startswith</em> / <em>endswith</em> (string/array of strings starting or ending with a string; since version 1.2333)</li>
<li><em>jpath</em> (string/array of JSON strings matching the <a href="https://github.com/json-path/jsonpath">specified path</a>; since version 1.2333)</li> <li><em>jpath</em> (array of strings matching the <a href="https://github.com/json-path/jsonpath">specified path</a>; since version 1.2333)</li>
</ul> </ul>
<p>The following extra functions are available:</p> <p>The following extra functions are available:</p>
<ul> <ul>

Loading…
Cancel
Save