inv = {"item1":0,
"item6":0,
"item8":4}
await db.execute("""CREATE TABLE IF NOT EXISTS us (
us TEXT,
id INT,
invent INT,
check INT
)""")
await db.execute("INSERT INTO us VALUES (?, ?, ?, 0)", (member.name, member.id, inv))
import json
# Например так
a = json.dumps({"a": 1})