Some filters take parameters that are JSON expressions. A JSON expression is a specification of a JSON path and value.
A JSON expression uses the name of the attributes (or indexes for arrays) in the document, and specifies their value. It either matches a document, or it does not.
At this point, the only supported operators are = (equals) and != (not equals). The values specified after the operator are stripped of any leading or trailing spaces, so if you need to do a match with a value that begins or ends with a space, you'll need to do that in the filter code.
The best way to explain JSON expressions is to demonstrate them. Let's assume that we're working against the following JSON document:
The following JSON expressions will be satisfied by this document:
An array index of * means at least one member of the array must satisfy the condition.
The following JSON expressions will not be satisfied by this document:
Multiple JSON expressions can be specified by separating them with semicolons (spaces before and after semicolons are ignored):
Some filters will define a variable called matchPath that will contain the value of the path that caused the match. This allows your code in the filter to be able to find the part of the document that caused the match, which is useful when your JSON expressions contain *.