Top 1,000 Features Creators Resources Blog Explorer Download
GitHub icon

Hocon

< >

Hocon, aka Human-Optimized Config Object Notation, is a data notation created in 2011.

#889on PLDB 13Years Old

HOCON, or Human-Optimized Config Object Notation is a format for human-readable data, and a superset of JSON and .properties. It is primarily used in conjunction with the Play framework, and is developed by Lightbend. It is also supported as a configuration format for .NET projects via Akka.NET and Puppet.. Read more on Wikipedia...


Example from the web:
// one array a : [ 1, 2, 3, 4 ] // two arrays that are concatenated a : [ 1, 2 ] [ 3, 4 ] // a later definition referring to an earlier // (see "self-referential substitutions" below) a : [ 1, 2 ] a : ${a} [ 3, 4 ]

Language features

Feature Supported Token Example
Comments ✓
// A comment
Line Comments ✓ //
// A comment
Semantic Indentation X

View source

- Build the next great programming language · About · Acknowledgements · Extensions · Day 630 · Donate · feedback@pldb.io