Configuration file format

Hi there,
one general question: giving the fact that MongoDB is a so json-esque database engine, why configuration file follows yaml notation?

Thanks,
Florin

Thankfully so we can add comments. lol I’m not sure on the official answer though.

Hi @Florin_96146,

MongoDB is a document database which stores BSON and it returns JSON in most Drivers to simplify use by developers.

In the context of the YAML notation, it is basically one of the major standardised formats for configuration files.
It’s the one we chose to replace a simpler text format which wasn’t very well structured or widely adopted as a standard and was used in earlier MongoDB versions (2.6 and lower) -https://docs.mongodb.com/v2.4/reference/configuration-options/

Happy to help!
Muskan
Curriculum Support Engineer