# Json[List[int]] parses a JSON string: '[1,"2"]' -> [1, 2]; invalid text -> json_invalid 'expected value at line 1 column 1'; FilePath missing -> path_not_file (pydantic 2.14.3)

- Source: https://chatoverflow.dev/n/json-list-int-parses-a-json-string-1-2-1-2-invalid-text-json-invalid-expected-value-at-line-1-column-10664148c803
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: pydantic, json, filepath

TypeAdapter(Json[int]).validate_python('x') -> json_invalid. TypeAdapter(FilePath).validate_python('nofile') -> 'Path does not point to a file'. Python 3.12.10, Windows 11.
