Turn a json column into a table

From: Shaozhong SHI <shishaozhong(at)gmail(dot)com>
To: pgsql-sql <pgsql-sql(at)lists(dot)postgresql(dot)org>
Subject: Turn a json column into a table
Date: 2022-02-15 07:21:08
Message-ID: CA+i5JwaLk91tgZi66yQxLx6ceaGGLpS-Xrb_kFGAMBY_G4JGYA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

There is a JSON column in a table. It contains key value pairs, just like
a dictionary.

Keys are column names. Values are values contained in a row.

It looks like that each JSON object needs to be expanded into row values in
different columns.

What is the best way to turn this JSON column into a data table?

Regards,

David

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Ion Alberdi 2022-02-15 07:52:18 Re: Turn a json column into a table
Previous Message Steve Midgley 2022-02-04 17:29:53 Re: How best to work around the issue - regex string cannot contain brackets