Web Version Guide1 min

Comment Preservation Feature

How to preserve YAML comments

Comment Preservation Feature

How to keep YAML comments after conversion.


💬 Why Comment Preservation Matters

Config file comments contain important info:

# Production database settings
# Contact ops team before changes
database:
  host: db.prod.example.com  # Master DB
  port: 5432  # Default port
  pool_size: 20  # Based on load test results

❌ Problem with Other Tools

JSON doesn't support comments, so they're all lost on conversion.


✅ YAMLforge Solution

YAMLforge saves comments as special metadata.

How to Use

  1. Turn ON "Preserve Comments" option
  2. Run conversion
  3. Comments restored when converting JSON → YAML

📊 Supported Comment Types

Comment TypeSupported
Line comments #
Inline comments
Multi-line comments
Document header comments
Tags
#comment#yaml#feature#preservation