| 45 | """Test JSON type in ORM mapped columns.""" |
| 46 | |
| 47 | class JSONTest(Base): |
| 48 | __tablename__ = "test_json" |
| 49 | id = mapped_column(Integer, primary_key=True) |
| 50 | json_data: Mapped[Dict[str, Any]] = mapped_column(JSON) |
| 51 | json_list: Mapped[List[Any]] = mapped_column(JSON) |
| 52 | |
| 53 | json_obj = JSONTest() |
| 54 | assert_type(json_obj.json_data, Dict[str, Any]) |