On 2022-10-28 4:26 PM, Mikhail Khludnev wrote:
Well, Dmitry. Turns out keys in JSON _should be_ but not ought to be unique.
Right, just like a parachute _should_ but not ought to open on your way down.
You can think about streaming writer or reader in any rational programming language.
Of course I can hand-write the string to be any kind of garbage I want, and then hand-write a parser to read it. But JSON stands for JavaScript Object Notation. If a string can't be demarshalled into a valid JavaScript Object, it goes *splat* on the ground.
Dima