I must say that for me plain old Java properties often work pretty
well. As much as I like JSON for data transfer, I don't think it is
particularly good for configuration. Configuration may be one of few
use cases for which YAML works well.
-+ Tatu +-
I must say that for me plain old Java properties often work pretty
well. As much as I like JSON for data transfer, I don't think it is
particularly good for configuration. Configuration may be one of few
use cases for which YAML works well.
I vote for the HOCON format, it's looks nice.
Hmmh. Somehow missed this -- sorry for slow reply.
Not 100% sure what to think of HOCON: I both like it, and dislike some
parts. Latter is mostly because if it wants to go above and beyond
JSON, it should do so... but it seems to be sort of minor addition,
then lots of convention. And most of those conventions can already be
used with JSON.
My point is this:
Since it is a superset of JSON, it will require custom parsers (and
generators if need be). Given this, why try to keep any other aspect
with JSON? You can't use any of existing tools, so why take any of the
limitations.
I'd rather think one would make good use of incompatibility, to add
things that JSON is missing.
That said, using this notation would probably work ok; just requires
yet another set of tools to operate on, but still might not be as
convenient to hand edit as YAML.
-+ Tatu +-