HOCON data parser for Erlang/OTP.
HOCON spec for reference: https://lightbend.github.io/config/
@ is allowed in unquoted strings.a b c : 42 is invalid.#{key => <<"value1value2">>})
"key=value1 value2""key=value1value2""key=\"value1\" \"value2\"""key=value1\nvalue2"#{key => [1,2,3,4]})
key=[1, 2] [3, 4]key=[1, 2]\n[3, 4]key=[1,2,3,4]#{key => #{a => 1,b => 2}}):
key={a: 1} {b: 2}key={a: 1}\n{b: 2}key={a=1, b=2}url()/file()/classpath() includes are not supported""""a"""" is invalid because there are 4 closing quotes instead of three. See workarounds below.~\n (or ~\r\n) are the only characters following the opening triple-quote, then it's a multiline string with indentation:
~\n is discarded.""" or ~""" (~ allows the string to end with " without escaping).a = """~
line1
~"""
"line2\"\"\"\n"
"""~
line3
~"""
a = "line1\nline2\"\"\"\nline3\n"HOCON schema (hocon_schema) is a type-safe data validation framework.
which is compatible to basho cuttlefish
See more information in SCHEMA.md
Files in sample-configs are collected from https://github.com/lightbend/config/tree/v1.4.1
Apache License 2.0, see LICENSE.
EMQX team
Erlang
99.2%
HOCON data parser for Erlang/OTP.
HOCON spec for reference: https://lightbend.github.io/config/
@ is allowed in unquoted strings.a b c : 42 is invalid.#{key => <<"value1value2">>})
"key=value1 value2""key=value1value2""key=\"value1\" \"value2\"""key=value1\nvalue2"#{key => [1,2,3,4]})
key=[1, 2] [3, 4]key=[1, 2]\n[3, 4]key=[1,2,3,4]#{key => #{a => 1,b => 2}}):
key={a: 1} {b: 2}key={a: 1}\n{b: 2}key={a=1, b=2}url()/file()/classpath() includes are not supported""""a"""" is invalid because there are 4 closing quotes instead of three. See workarounds below.~\n (or ~\r\n) are the only characters following the opening triple-quote, then it's a multiline string with indentation:
~\n is discarded.""" or ~""" (~ allows the string to end with " without escaping).a = """~
line1
~"""
"line2\"\"\"\n"
"""~
line3
~"""
a = "line1\nline2\"\"\"\nline3\n"HOCON schema (hocon_schema) is a type-safe data validation framework.
which is compatible to basho cuttlefish
See more information in SCHEMA.md
Files in sample-configs are collected from https://github.com/lightbend/config/tree/v1.4.1
Apache License 2.0, see LICENSE.
EMQX team
Erlang
99.2%