How to use postgresql any with jsonb data
问题 Related see this question Question I have a postgresql table that has a column of type jsonb. the json data looks like this { "personal":{ "gender":"male", "contact":{ "home":{ "email":"ceo@home.me", "phone_number":"5551234" }, "work":{ "email":"ceo@work.id", "phone_number":"5551111" } }, .. "nationality":"Martian", .. }, "employment":{ "title":"Chief Executive Officer", "benefits":[ "Insurance A", "Company Car" ], .. } } This query works perfectly well select employees->'personal'->'contact'