I use YAML all the time (for config) and the things you mention have caused no more than one minute's frustration in my life. JSON is great for serialisation, YAML for little config files that need frequent hand-editing during development.
But of course toml is superior to both because it has comments and no significant white space and the comma at the end of lists is optional.