#How to populate jsonb fields (postgresql 17)

2 messages · Page 1 of 1 (latest)

weak quest
#

I have a jsonb field in my table.
I am doing car.metadata = json.dumps(mydict)
Or should I just do :car.metadata=mydict?

mild nexus
#

The first will save a json representation of a string with the json contents to the DB.