JSON searches in REST2 interface

I’ve built a REST2 search script that runs by getting a list of tickets, then ticket histories, then transactions, then attachments. It seems I could collapse some of these many queries by using what the documentation calls “L</JSON searches> syntax”, but I can’t find how to use JSON searches in the documentation. Am I missing it?

You might want to look at this section of the RT::REST2 documentation that has some examples: RT::REST2 - RT 5.0.1 Documentation - Best Practical

Looks like you specify an array of hashes, where each has is either a pair of field and value or a triple of those two plus operator (if you don’t want straight equality test) or a quad with the extra entry of entry_aggregator that lets you turn the default OR logic between hashes into an AND.