3 ms·
The problem is json is not a simple format. In one major respect it is more difficult to generate than XML. The inability to handle commas as terminators rathe
by butlerm 4y ago
The problem is json is not a simple format. In one major respect it is more difficult to generate than XML. The inability to handle commas as terminators rather than separators is a disaster that immensely complicates generating arbitrary json. That aspect only appears to be useful with trusted documents and dangerous eval style processing in Javascript in the first place.
Of course it originated as JavaScript Object Notation, but it has significant downsides even as a replacement for a restricted dialect of XML. It is (regrettably) both difficult to read and difficult to generate by comparison. The absence of support for comments is a problem for ubiquitous use for configuration files as well.
- bazoom42 4y ago> The inability to handle commas as terminators rather than separators is a disaster that immensely complicates generating arbitrary json. This is a bit over the top. At worst you need a flag to special-case the first item.