VS Code has been letting you write invalid JSON for years, and it’s completely intentional
My VS Code settings.json file is full of notes to myself. One line explains why autosave waits a moment; another reminds me why the build folders are hidden. After adjusting a handful of VS Code settings that make coding feel lighter, those comments are how I remember why each one exists. Yet hand that file to Python’s built-in JSON parser, and it fails on the very first comment. The difference is intentional. Since version 1.19 in November 2017, VS Code has opened its own config files in a separate mode that allows comments on purpose. Related VS Code finally has a serious rival, and it feels absurdly fast I switched for speed and stayed for everything else. Your settings file quietly breaks JSON’s rules Comments and trailing commas were never part of the standard Screenshot by Yasir Mahmood JSON, short for JavaScript Object Notation, is the plain-text format countless apps and websites use to pass data around. Its official standard, RFC 8259, allows objects, arrays, strings, numbers, true, false, and null. It doesn’t allow comments, …








