OPEnSLab-OSU/Loom

Provide support for parsing TOML (Tom's Obvious, Minimal Language) formated config

Closed this issue · 2 comments

Is your feature request related to a problem? Please describe.
JSON, while incredibly useful from a developer position and fundamentally simple, is a relatively hostile standard for someone who has no development experience. TOML is a standard that works 1:1 with JSON, while appearing far more readable and friendly (for example, inline comments!).

Describe the solution you'd like
Identify a lightweight toml to json parser to sit on top of ArduinoJSON in order to provide TOML config input and output

Describe alternatives you've considered
Arduino JSON by default provides support for NLDJSON (new line delimited JSON) as well as a similar, near bracket less JSON format, despite how much these provide useful features, they are not quite the easily approachable format that TOML can provide.

Additional context
https://github.com/toml-lang/toml#user-content-example

How would TOML translate into a header file? One reason JSON was originally chosen is because it is not newline delimited by default, and as a result can be stored in structured format in a header file.

TOML does not translate well to a header file, and as a result this suggestion will be tabled until the configuration web interface is built.