1SELECT CAST( json_column AS TEXT ) FROM table
2or
3SELECT json_column::TEXT FROM table
1SELECT
2 ID
3 ,(
4 SELECT string_agg(trim(JsonString::text, '"'), ', ')
5 FROM jsonb_array_elements(JsonData->'Name') JsonString
6 ) AS StringArray
7FROM tbl_TestJsonArray;
8
1
2
3
4
5 SELECT info ->> 'customer' AS customer,
6 info -> 'items' ->> 'product' AS product
7FROM orders
8WHERE CAST ( info -> 'items' ->> 'qty' AS INTEGER) = 2