3 ms·
Whenever I encounter JSON schema, It makes me aware that the important difference between JSON and XML is not the syntax (my IDE handles that fine), nor the fea
by berkes 6y ago
Whenever I encounter JSON schema, It makes me aware that the important difference between JSON and XML is not the syntax (my IDE handles that fine), nor the features. But the difference in rigidity. JSON when agility is needed. XML when rigidity is needed.
I fail to see any benefit of a rigid, typed, schema'd JSON that XML does not offer more naturally.
- com2kid 6y agoLots of APIs pop out JSON. JSON schema let's you make that a bit safer.
- berkes 6y agoMy point is that if they need this "safer", why not pop out XML instead. The largest benefit of JSON is that is not XML. That it doesn't get bogged down in schema's, strong typing, interfaces, contracts and so on. You loose all that by turning JSON into XML-written-in-a-different-syntax.