I\'m having an issue with accessing field of generated Routine from PL/pgSQL user-defined function (which returns JSON data type as a result) a
The first part of your question is answered here. In your updates, this is not valid Java code:
org.jooq.JSON.class::valueOf
You meant to write this:
org.jooq.JSON::valueOf