Sometimes it's a real pain that JSON doesn't support comments. One positive consequence is that 'npm install' is always able to programmatically add new entries.
Cargo's TOML is much harder to edit in a way that preserves comments, though solutions now exist.
Underrated perk of JSON: it's easy to programmatically make changes to a file made by a human.
Very few other formats have this advantage. `cargo add` took a bunch more implementation work than `npm install`, because preserving TOML comments takes more work.