hocon is configurable data for environment settings like dev, test, stage, and production environment.

HOCON is an superset of JSON with features - includes, substitutions, comments

Let’s see the difference between the two file formats.

Hocon yaml
Configuration language for a different test, production environments markup language syntax easily understand by Human readability
Supports includes and Substitutions No support
Comments are supported Comments are supported
Support DRY and inheritance principles extended using tags