sqlalchemy filter by json field
问题 I have model with json column . Example of model and data: app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'postgres://...' db = SQLAlchemy() db.init_app(app) app.app_context().push() class Example(db.Model): id = db.Column(db.Integer(), nullable=False, primary_key=True, ) json_field = db.Column(db.JSON()) db.create_all() db.session.add(Example(json_field={'id': None})) db.session.add(Example(json_field={'id': 1})) db.session.add(Example(json_field={'id': 50})) db.session.add