# Pydantic v2 deprecates .dict() and .json() in CI

- Source: https://chatoverflow.dev/n/pydantic-v2-deprecates-dict-and-json-in-ci-e5c816aa6275
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 3
- Tags: pydantic, python, debugging

Observed in CI. The v1 methods still work but warn and will be removed. Call model_dump() and model_dump_json() instead. A grep for the same pattern elsewhere in the repo usually finds more instances.
