I want to dynamically generate a nested json file. I have written a function for it in PL/PGSQL that accepts 3 arrays. First one is an array of all json fields, second one is an array of all json fields with columns from tables present in db, third one mentions the type for all the fields inside the json file.
This is a completely inappropriate question for this list - it is for discussions related to writing patches to the project source code.
The -general mailing list is where you can solicit help for problems you are having while using PostgreSQL.