Introduction
HOCON is a configuration format described informally in the repository of the
Lightbend config library. It is a superset of
JSON. The description names the media type
application/hocon, and its examples use .conf files.
Structure
Comments start with // or #. The braces around the root object
may be left out, = may stand for :, and a new line may stand
for a comma. Where a key repeats, objects are merged and other values override. Values
can refer to others with ${path} or the optional form
${?path}, and include brings in other files.
Not described
This page is a first outline.
Known, not yet covered
- Reference: unquoted strings, concatenation, include forms and substitution rules in full.
- Viewer: the site has no viewer for this format.
Also used for
- WireGuard configuration – INI-style configuration of a WireGuard VPN tunnel.
Links
Developers
- Lightbend config – the library’s HOCON description