class Main(Base):
__tablename__ = 'main'
***
defects_list = Column(JSON)
***
sample of what I have in db defects_list
"[{\"defect_type_id\": 1, \"defect_type\": \"Crack\", \"defect_position\": [82, 624, 114, 696]}, {\"defect_type_id\": 1, \"defect_type\": \"Crack\", \"defect_position\": [84, 1309, 119, 1377]}, {\"defect_type_id\": 1, \"defect_type\": \"Crack\", \"defect_position\": [43, 2853, 116, 3053]}]"
How I can filter all Main objects which have '"defect_type_id": 1'
I want to create a filter for SqlAlchemy Postgres to get all Main objects which has defect_type_id :1 at defects_list