Claude Code: settings files did not load (Invalid or malformed JSON)
A settings file is not valid JSON, most often because of a trailing comma, a comment or a missing brace. The exact message, why Claude Code prints it, and the fix.
Updated November 23, 2026 · Checked against Claude Code 2.1.308, reproduced in EnvHaven 1.9.0
The message
These settings files did not load, so nothing in them is in effect, including hooks and permission rules. Each loads again once the problem listed for it is fixed:
~/.claude/settings.json: Invalid or malformed JSON
What it means
A settings file is not valid JSON, most often because of a trailing comma, a comment or a missing brace. Claude Code ignores the whole file, so its permission rules and hooks are not in effect.
Fix
- Open the file named in the message and validate it:
python3 -m json.tool ~/.claude/settings.json. - Remove trailing commas and comments; JSON allows neither.
- Restart
claude. The warning disappears once every listed file parses.
In an EnvHaven workspace
Only if the file is edited by hand. The workspace writes a valid settings file on first boot.
Where this comes from
This message was produced by Claude Code (Claude Code 2.1.308) itself, in a throwaway EnvHaven 1.9.0 container, on 2026-11-23; the text above is copied from that output.