test: use Fatalf when printing a formatted string
json: treat empty files like an empty dictionary.