In my postgresql function come parameter data in json format
{"name": ["Петя", "Коля", "Вася"]} .
There is a table with names from which to select the class
SELECT age, address FROM users WHERE name IN (... а вот тут как-то вставить мой входящий parameter->>'name' ...) Tell me how to do this syntactically and ideologically correctly in order not to arrange unnecessary preliminary parsing of strings inside the function, unnecessary conversions and so on. thank