Is there anything more idiomatic than
List<JSON> jsons = context.fetch("select row_to_json(p) j from persons p")
.stream()
.map(r -> r.get("j", JSON.class))
.toList();
to use row_to_json() with jOOQ?
I tried using function("row_to_json", ...) but couldn't figure out how to fill the remaining arguments.