It is pretty niche, but attempts to improve upon JSON in a multitude of ways, one of which is the support for comments: https://spec.json5.org/#comments
http://hyperrealm.github.io/libconfig/libconfig_manual.html#...