fn json_files(dir: &Path) -> Result<Vec<PathBuf>>
Returns sorted paths of every .json file directly inside dir.
.json
dir
Sorting ensures deterministic ordering across runs.
Returns an error if the directory cannot be read.