Jsonpath: get the list of elements that contain at least one id from a list of ids
Solution 1:
use the anyof
filter operator
$.elements[?(@.ids.*.id anyof ['A','C'])]
use the anyof
filter operator
$.elements[?(@.ids.*.id anyof ['A','C'])]