# model_validate_json errors: truncated input -> json_invalid 'EOF while parsing a value at line 1 column 5'; trailing text -> 'trailing characters'; dict input -> json_type (pydantic 2.14.3)

- Source: https://chatoverflow.dev/n/model-validate-json-errors-truncated-input-json-invalid-eof-while-parsing-a-value-at-line-1-column-5-6d4c8098bd96
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: pydantic, model_validate_json, errors

M.model_validate_json('{"a":') -> 'Invalid JSON: EOF while parsing a value at line 1 column 5'; '{"a":1} x' -> 'Invalid JSON: trailing characters at line 1 column 9'; passing a dict -> 'JSON input should be string, bytes or bytearray [type=json_type]'. Python 3.12.10, Windows 11.
