{"version":"2.1.330","anchor":"settings-now-errors-on-invalid-json","canonical_anchor":"settings-now-errors-on-invalid-json","heading":"Invalid JSON passed to --settings now stops with an error","tier":"notice","area":"Settings","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/settings-now-errors-on-invalid-json","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### Invalid JSON passed to --settings now stops with an error\n\nInline JSON given to `--settings` is now trimmed and, if it is invalid, Claude Code reports an error instead of silently ignoring it\n\n**What**\n\nThe `--settings` flag accepts either a path to a settings file or settings written directly as JSON text. Inline JSON is now trimmed of surrounding spaces before it is read. If it is not valid JSON, Claude Code now stops with the error \"Invalid JSON provided to the settings option.\" Previously the problem was ignored and the settings were simply not applied.\n\n**Why**\n\nA typo in inline settings no longer goes unnoticed, but scripts that passed broken JSON and ran anyway will now fail.\n\n- Area: Settings\n- Names: `--settings`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: yes"}