2 ms·
> objects and arrays are programming language constructs, not data format constructs. Debatable. To me there is a clear difference between a list of things of
by shawnz 7y ago
> objects and arrays are programming language constructs, not data format constructs.
Debatable. To me there is a clear difference between a list of things of the same type, and a mapping of names to values of potentially varying types. I don't think the specific programming language really matters, they are two totally different concepts with much different applications.
> There's also no way in JSON to distinguish between an int and a float and a decimal type
True, but they are just small literals which are easy to differentiate at a glance, not big multi-line structures like objects or lists. Plus s-expressions have the same issue.