Ah, thank you...
JSON support in PostgreSQL is cool and seems to be extended with eachrelease.
But standard tasks of returning a JSON map of lists or JSON list of listseem to be difficult to use.
GreetingsAlex