| 174 | """Test JSON type in ORM mapped columns.""" |
| 175 | |
| 176 | class JSONTest(Base): |
| 177 | __tablename__ = "test_json" |
| 178 | id = mapped_column(Integer, primary_key=True) |
| 179 | json_data: Mapped[Dict[str, Any]] = mapped_column(JSON) |
| 180 | json_list: Mapped[List[Any]] = mapped_column(JSON) |
| 181 | |
| 182 | json_obj = JSONTest() |
| 183 | assert_type(json_obj.json_data, Dict[str, Any]) |