3 ms·
You just parse and reserialize it. The trick is handling comments.
by sundbry 5y ago
You just parse and reserialize it. The trick is handling comments.
- dathinab 5y agoDon't underestimate YAML and not fully compliant YAML parsers(1) and sterilizer's with everything but nice results. (1): Which can be necessary to prevent accidental problems like NO defaulting to false not "NO" and similar. I personally strongly recommend against anything where string quotes are optional for human written/edited serialization formats (and comments are a must have).