There's a semantic error here; the name and age fields have been
swapped in the second element of the list. At some point, somebody
has to check whether :name is a string and :age is a number. If your
application is going to do that anyway, why do syntax typing?
You might as well just try to construct a number from "Wilma" at the
point where you know you need a number.
Obviously I have an opinion here, but I'm putting it out there in
the hope of being contradicted. The whole world seems to run on JSON,
and I'm struggling to understand how syntax typing helps with JSON
document validation rather than needlessly complicating the syntax.
Obviously I have an opinion here, but I'm putting it out there in the hope of being contradicted. The whole world seems to run on JSON, and I'm struggling to understand how syntax typing helps with JSON document validation rather than needlessly complicating the syntax.