We are trying to import tables into PostgreSQL from SQL Server. In source data, there are tables with a JSon column storing nested information for parent record in Master Detail fashion. For example, for one Order, there can be multiple properties stored in JSon Column in the same row.
While this approach worked well for SQL Server, in trying to do the same on PostgreSQL, we are running into an error "ERROR: invalid input syntax for type json" DETAIL: Expected end of input, but found ",".
Has anyone encountered a similar situation and if so, can you suggest the right way to achieve the desired result. You can refer to the following insert statement as example.
INSERT INTO "customer"
("name",
"id",
"details")
VALUES ("abc",
1,
'{"PhoneNO":"987654321","Gender":"Female"},{"PhoneNO: "98123456"} ')