Constructing JSON directly within SQL queries (converting rows to JSON)

0

I need to construct a complex JSON which replicates the structure of API response using sql query, in order to compare both for testing purpose. Can/will redshift support JSON functions (such as json_build_object, rows_to_json, json_agg, array_to_json...) to build complex JSON queries. If not, is there any alternative?

1개 답변
-1

Hi,

So far, Redshift supports only these JSON functions. Also, OBJECT_TRANSFORM function could help. Please check if they satisfy your requirements.

profile picture
전문가
답변함 4달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠