Query JSON Examples
Literals¶
TRUE Literal¶
FALSE Literal¶
Primitive Terms¶
Binary Comparison Operators¶
Available Operators; eq, ne, gt, ge, lt, le
With Instant¶
With Boolean¶
With Number¶
With String¶
Collection Operators¶
IN Operator with Numbers¶
IN Operator with Strings¶
NOT IN Operator¶
NULL Checks¶
IS NULL Operator¶
IS NOT NULL Operator¶
REGEX Operator with Pattern¶
Composite Operators¶
AND Composite¶
OR Composite¶
NOT Operator¶
Sorting¶
{
"entries": [
{
"key": "fieldNameA",
"direction": "ASC"
},
{
"key": "fieldNameB",
"direction": "DESC"
}
]
}
Pagination¶
Query¶
{
"filter": {
"and": [
{
"locator": "status",
"eq": "active"
},
{
"or": [
{
"in": {
"locator": "category",
"values": [
"A",
"B",
"C"
]
}
},
{
"notIn": {
"locator": "type",
"values": [
"X",
"Y"
]
}
}
]
},
{
"not": {
"isNull": "lastUpdated"
}
}
]
},
"sort": {
"entries": [
{
"key": "location",
"direction": "ASC"
}
]
},
"paginate": {
"index": 0,
"size": 25
}
}