4 ms·
> - it's confusing what should be a text inside a tag versus a tag attribute. Or should that text be parsed into a number? At least JSON is strongly typed, you
by bokchoi 5y ago
> - it's confusing what should be a text inside a tag versus a tag attribute. Or should that text be parsed into a number? At least JSON is strongly typed, you know what datatype is what just by looking at it.
JSON's types are pretty anemic compared to the XMLSchema's datatypes[0]. Even it you don't use all of XSD's complex type system, having these basic datatypes is extremely useful and I wish JSON had similar.
[0] https://www.w3.org/TR/xmlschema11-2/ https://www.w3.org/TR/xmlschema11-2/
- dragonwriter 5y ago> JSON's types are pretty anemic compared to the XMLSchema's datatypes The same thing is true if you replace “JSON” and “XMLSchema” with “XML” and “JSON Schema”, respectively. And also, though less so, if you do the same but replace “XML Schema” with “JSON” instead of “JSON Schema”.