postgres json to string
SELECT CAST( json_column AS TEXT ) FROM table
or
SELECT json_column::TEXT FROM table
postgres json to string
SELECT CAST( json_column AS TEXT ) FROM table
or
SELECT json_column::TEXT FROM table
json array to string in postgresql
SELECT string_agg(trim(tdata::text, '"'), ', ') from jsonb_array_elements(CAST('[1 , 2]' as jsonb)) tdata
postgresql parse json array
SELECT array_to_json(array_col) as array_col FROM t_name;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us