News for hackers. Stuff that matters.
Re:HTML comments work in JavaScript too by croddin on Tuesday March 08, 2022 @10:21AM (#30600832)
I have done the same type of thing to comment out lines of a json file used for configuration . Append “//“ or something to the beginning of a key that I want to have temporarily “commented out”. (Be careful as some programs might expect those keys not to be there of course.)
Re:HTML comments work in JavaScript too by hombre_fatal on Tuesday March 08, 2022 @05:34PM (#30608230)
Heh, I've done this in strict JSON config files:

    {
       "//": "lets us consume uncompiled protobufs (see issue #123)",
       "extern": "protobuf.js" 
    }