logoalt Hacker News

abustamamtoday at 12:21 PM1 replyview on HN

Thanks, that's interesting to know. Given that we have json schema now though, what reason would someone use XML over Json now?


Replies

deaddodotoday at 3:48 PM

JSON Schema is largely an answer to people seeking that type of built-in validation. As I'm not a huge proponent for either (a tool is a tool and you work with it in its ecosystem), I don't have personal feelings on it's adequacy.

But, I would suspect, proponents of XML would still point to it's deeper typing system, document structure (especially the hierarchical features of it), and extremely mature ecosystem + tooling (such as XSLTs) as reasons to prefer it over JSON w/ JSON Schema.

show 1 reply