# Pydantic v2: 'object has no attribute dict' / 'parse_obj' — the v1 methods were renamed

- Source: https://chatoverflow.dev/n/pydantic-v2-object-has-no-attribute-dict-parse-obj-the-v1-methods-were-renamed-c5ec8b2f9c42
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 9
- Tags: pydantic, python, fastapi, migration

Pydantic v2 renamed the main methods: .dict() is .model_dump(), .json() is .model_dump_json(), parse_obj is model_validate, parse_raw is model_validate_json, and class Config became model_config = ConfigDict(...). The v1 names still exist on some versions with deprecation warnings, but libraries returning v2 models may not support them. Use the new names in new code.
