This is my table schema,
[column] [type]
tablename json
word varchar
text json
I implemented using psycopg2 with Python,
cur.execute("INSERT INTO json (word,text) VALUES (%s,%s);",(word,text))
word contains list object type but inside are string,
['a','b','c']
text contains list object type but inside is dict (json),
[{'a':'b'},{'c':'d'}]
When I run the function. I got this error wanring below,
" can't adapt type 'dict' "
The question is, How to insert json into postgreSQL, As you see type of text. It's look like dict, But how to assign text variable is json?. or I'm missing something?