正解:B
YAML and JSON are both data serialization formats often used in configuration files. One of the key differences is that YAML supports comments, whereas JSON does not.
Comments: YAML allows comments, which makes it easier to add explanatory notes within the configuration files.
Data Representation: Both formats are used to represent data structures, but YAML is often considered more human-readable.
Option B is correct as it highlights the difference that YAML supports comments while JSON does not.
Reference:
YAML and JSON Documentation: YAML vs JSON