Trying to import data from a JSON File into a column data in a Table using SQLAlchemy.
Version looks kind of like this:
class JsonTable(declarative_base()):
__tablename__ = "json_table"
id = Column(Integer, primary_key=True)
data = Column(JSON)
json_data = open('U:\\data.json')
data = json.load(json_data)
for key, value in data.items():
JsonTable
How to get the single JSON elements into my data column? JSON file looks very basic, like this
{
"company": "test",
"number": "123"
}