Example: using PyYAML to parse the JSON file from above:
>> import yaml >> val = yaml.load('{"extensions": ["cpp", "cc", "cxx", "c++", "h", "hpp", "hxx", "h++", "inl", "ipp"]}') >> print val {'extensions': ['cpp', 'cc', 'cxx', 'c++', 'h', 'hpp', 'hxx', 'h++', 'inl', 'ipp']}
That said, I think http://json5.org/ is a decent middle term.
Example: using PyYAML to parse the JSON file from above: