4 ms·
> JSON with a schema is strictly better than XML with a schema. I am baffled by this assertion. XML Schema (XSD) is much more expressive than JSON Schema.
by mcculley 3y ago
> JSON with a schema is strictly better than XML with a schema.
I am baffled by this assertion. XML Schema (XSD) is much more expressive than JSON Schema.
- incrudible 3y agoThat is a bug, not a feature.
- mcculley 3y agoNot to me. I have lots of data exchanging going on where the format is expressed well in XSD and in JSON Schema it is expressed through documentation, code, and a history of angry emails.
- incrudible 3y agoIf it can't be expressed as a JSON schema, it's a bad idea. If it can be expressed by a JSON schema, it may be a good idea.
- mcculley 3y agoThis does not match my experience. Can you provide some clear explanation or examples of why having less power to express a schema is desirable?
- incrudible 3y agoParalysis of choice.
- mcculley 3y agoThis remains an unconvincing argument.
- deleted 3y ago[deleted]
- incrudible 3y agoNot everybody needs convincing. JSON already won.
- mcculley 3y agoIt won in places where one does not need to express an integer larger than 2^53. Lots of us have harder requirements.