|
|
|
|
|
by hexxiiiz
2147 days ago
|
|
In all fairness, JSON itself continues to be as simple a format as it ever was. Having schemas is an important adjuct because it frees devs up from constantly translating specs into ad-hoc validation routines that all too often miss something or make mistakes. Validation up front saves a tremendous amount of pain dealing with a key error deep in a call stack when the moment a config file was read its omissions or mistakes could have been identified. Moreover, and on a related note, in many ways, JSON is great as an exchange format, but stifling as a config language. There is a lot if room between JSON and XML to work with. |
|
JSON is a data exchange format which is sometimes used as a configuration format, also a mistake.
Will we go full circle and start using a configuration language for data exchange or mark-up? TOML APIs?