hocon is a configuration file for maintaining environment-specific configuration in Akka, play, and python projects
HOCON is a superset of JSON with features - includes, substitutions comments
Here is an hocon sample configuration file example
\\ simple configuration
application=myapp
\\ object configuration
dev: {
host: dev.com
port: 8080
}
\\ object configuration
test {
host: test.com
port: 8080
}
role: {
id: 24
name: 'admin'
active: false
}
\\ array declaration
all: {
roles: [
admin
sales
support
]
}
\\ substitutions
devprofile {
hostname: dev
}
devpath: ${devprofile.hostname}:8080