Does not work in the query as the quoted 0 is not seen as an array element in the json - instead postgresql is looking for an object with a property value of "0" Digging through the AST And parsing it ...