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.

Hoconyaml
Configuration language for a different test, production environmentsmarkup language syntax easily understand by Human readability
Supports includes and SubstitutionsNo support
Comments are supportedComments are supported
Support DRY and inheritance principlesextended using tags