I have the next example code:
CREATE TABLE books ( id integer, data json );
INSERT INTO books VALUES (1,
'{ id: 1,id: 1,"name": "Book the First" }');
You can see that id
is a field within the format JSON that's duplicated, I understand that PostgreSQL have some feature that avoid that issue, but I can not find it.