Using JSON for format configuration files is a bit unfriendly, TOML seems like a more reasonable format.
The challenge here is that lnav has a pretty tight binding to yajl for parsing files since lnav is doing validation and populating internal data structures. It looks like this parser (https://github.com/skystrife/cpptoml/) has a visitor interface, so we can probably make it work. Or, just resort to converting the TOML file to JSON internally.
Suggested by @jefft
Using JSON for format configuration files is a bit unfriendly, TOML seems like a more reasonable format.
The challenge here is that lnav has a pretty tight binding to yajl for parsing files since lnav is doing validation and populating internal data structures. It looks like this parser (https://github.com/skystrife/cpptoml/) has a visitor interface, so we can probably make it work. Or, just resort to converting the TOML file to JSON internally.
Suggested by @jefft