You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The defined operators can be used in a text query. Only operators with both a left and right hand side are supported, like `a == b`. They can only be executed when there is a corresponding function. For example:
@@ -428,8 +428,10 @@ Here:
428
428
}
429
429
```
430
430
431
-
When the function of the operator supports more than two arguments, like `and(a, b, c, ...)`, the option `vararg` can be set `true` to allow using a chain of multiple operators without parenthesis, like `a and b and c`. When `vararg` is not set `true`, this would throw an exception, which can be solved by using parenthesis like `(a and b) and c`.
431
+
To allow using a chain of multiple operators without parenthesis, like `a and b and c`, the option `leftAssociative` can be set `true`. Withoutthis, an exception will be thrown, which can be solved by using parenthesis like `(a and b) and c`.
432
432
433
+
When the function of the operator supports more than two arguments, like `and(a, b, c, ...)`, the option `vararg` can be set `true`. In that case, a chain of operators like `a and b and c` will be parsed into the JSON Format `["and", a, b, c, ...]`. Operators that do not support variable arguments, like `1 + 2 + 3`, will be parsed into a nested JSON Format like `["add", ["add", 1, 2], 3]`.
434
+
433
435
All build-in operators and their precedence are listed in the section [Operators](#operators).
434
436
435
437
Here an example of using the function `jsonquery`:
0 commit comments