-- PostgreSQL doesn't use # as comment select jsoncol #> array['p1', 'p2'] from some_table where col#-'{1, a}' @? '$.b ? (@ > 0)';