In PDB 7.7.1, if log-queries = true some PDB queries will fail with Cannot JSON encode object of class: class org.postgresql.jdbc.PgArray. This was working in 7.5.2. Disabling log-queries alleviates the issue.
$ curl -X GET http://localhost:8080/pdb/query/v4 --data-urlencode 'query= facts[certname, name]{ name in ["fact1", "fact2"] }' Cannot JSON encode object of class: class org.postgresql.jdbc.PgArray: {"fact1","fact2"}
This can only really happen when you have multiple versions of the Postgresql JDBC driver on your classpath. Maybe one in your webapp and another one in the servlet container itself. Make sure to only have one such jar file.
Looks like PDB-5259 fixed this in passing by adding an encoder for PgArray objects along with performance optimizations. Should be present in 6.20.0 and 7.9.0.