Douglas Crockford addressed this many years ago: write your human readable config with comments and run it through a pre-processor to strip them out before handing the config to a JSON parser. Seems like almost no one picked up on the idea.
That is such a horrible non-solution. It breaks all tooling which isn't aware of your particular preprocessor and adds a compilation step to every configuration.
That avoids one of the benefits of having a text based format; I would use TER and convert to DER (where TER is a text format and DER is a binary format, and which is what I do with some of my programs).
(Text formats do have some benefits, but binary formats have different benefits.)
If that matters, the just bite the bullet and use JSON, which is supported in every browser in existence and has a parser library in every language worth using.