Here i need to extract only skill and store in 'skill_s' variable for further processing. How can i achieve this?
DO
$do$
DECLARE
skill_s Text[];
jsonObject json = // Json object
'{
"Name": "bala Kala",
"Education": "B.Tech",
"Skills": ["enim", "aliquip", "qui"]
}';
BEGIN
SELECT jsonObject::TEXT[]->'Skills' into skill_s;
raise info 'JSON value Name is %', skill_s;
END
$do$
I want to print the output enim, aliquip, qui