{
"$and": [
"$.foo",
{
"$eq": [
"$.foo",
"$.bar"
]
},
{
"$gt": {
"$.zick": "$.zack"
}
},
{
"$in": {
"$.zick": "$.zz"
}
},
{
"$regex": {
"$.foo": "^\\s*$"
}
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Show cheat sheet
$all
The predicate is true if all predicates in the array match. Example:
{"$all":{"$.foo":["bar","doe"]}}
$and
The predicate is true if all predicates in the array match. Example:
{"$and":[<pred1>, <pred2>, ...]}
$elemMatch
Tests that the given JSON path is an array of the given size. Example:
{"$size":{"$.foo": 2}}
$eq
Tests all JSON paths in the array for (deep) equality. Example:
{"$eq":[<path1>, <path2>, ...]}
$gte
Some description text. Example:
{"foo":123}
$gt
Some description text. Example:
{"foo":123}
$in
Some description text. Example:
{"foo":123}
$jsonSchema
Tests that the given JSON path is an array of the given size. Example:
{"$size":{"$.foo": 2}}
$lte
Some description text. Example:
{"foo":123}
$lt
Some description text. Example:
{"foo":123}
$ne
Some description text. Example:
{"foo":123}
$not
Some description text. Example:
{"foo":123}
$or
Some description text. Example:
{"foo":123}
$nor
Some description text. Example:
{"foo":123}
$regex
Some description text. Example:
{"foo":123}
$size
Tests that the given JSON path is an array of the given size. Example:
{"$size":{"$.foo": 2}}
$where
Tests that the given JSON path is an array of the given size. Example:
{"$size":{"$.foo": 2}}
$.foo && $.foo == $.bar && $.zick > $.zack && $.zick in $.zz && /^\s*$/.test($.foo)
{
"foo": "",
"bar": "",
"zick": 1,
"zack": 0,
"zz": [
0,
1
]
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX