Hacker News new | ask | show | jobs
by fusl 2894 days ago
This post is wrong on soooo many levels, mentioning all of them would explode this comment, but just to proof one of them: JSON does NOT "requires curly braces around the entire documen". In fact, you can enclose a document with [ and ] as well, which is why you need curly brackets to write configuration files. This has nothing to do with a JSON "require"ment.
2 comments

Wrapping the document in [] wouldn’t be very useful for config. So, what’s your point exactly?

Is that really the worst thing you can find in this post?

Just a primitive like a string, number, boolean etc is also valid json.
What does that have to do with using JSON as a configuration format? Having a single primitive (or for that matter an array) is not very useful as a configuration file.