|
|
|
|
|
by arinlen
1407 days ago
|
|
> The problem I have is, I need a configuration language that is human readable, familiar to developers without teaching (anybody who knows JS, or to some extent Python and PHP), is also machine writable, and supports comments. I'd say if those were your criterias and you still stuck with a JSON-derived language, your decision-making process was a colossal failure in oversight, given the myriad of options around such as TOML or even YAML. But let's pretend that adding comments and trailing commas to JSON makes any difference regarding those requirements. |
|
YAML has a data model like JSON, but it is disqualified for me by the syntax ambiguities.
The easiest thing is if people could just write JS (or Python) object literals, but restricted to plain old data, and without the ability to call functions etc.. JSON5 gives exactly that.