Re:Son – A minimal subset of JSON for machine-to-machine com...
by derefr on Tuesday March 14, 2017 @03:04PM
(#13870468)
Postel's law: things should parse JSON, but probably only emit SON. That gets you the best of both worlds: you can assume all messages internal to your system are in a canonicalized form (and thus do thing like hashing them with dumb tools), but your system still interoperates with other systems that don't bother to canonicalize, parsing their inputs and sending responses they understand.
Re:Son – A minimal subset of JSON for machine-to-machine com...
by snakeanus on Tuesday March 14, 2017 @06:04PM
(#13871901)
>making it less human friendly (arguably the thing that made JSON so popular in the first place)
I would not call a JSON human friendly due to its lack for comments.
Re:Son – A minimal subset of JSON for machine-to-machine com...
by seagreen on Tuesday March 14, 2017 @06:25PM
(#13872038)
You might be interested in JSON5 (http://json5.org/) which goes the opposite direction of Son and makes JSON more human-writeable. It's the best, cleanest "JSON+" I've found so far.
Basically making JSON more machine friendly and stricter to parse undermines the original reason to use JSON. If efficiency and absolute correctness are important use something not designed to be forgiving to humans :)