json.load() vs. json.loads() trips everyone up lol.
load() = file → dict
loads() = string → dict
Your code’s fine, but crashes could mean:
- File doesn’t exist (check path)
- JSON is invalid (try pasting it into https://jsonformatter.org/)
- Permissions?
Also, if the dict looks off, maybe the JSON has nested structures you didn’t expect.
load() = file → dict
loads() = string → dict
Your code’s fine, but crashes could mean:
- File doesn’t exist (check path)
- JSON is invalid (try pasting it into https://jsonformatter.org/)
- Permissions?
Also, if the dict looks off, maybe the JSON has nested structures you didn’t expect.
