Otter@lemmy.ca to Programming@programming.devEnglish · edit-28 days agoWhen Your Last Name Is Null, Nothing Workswww.wsj.comexternal-linkmessage-square13fedilinkarrow-up12arrow-down10file-text
arrow-up12arrow-down1external-linkWhen Your Last Name Is Null, Nothing Workswww.wsj.comOtter@lemmy.ca to Programming@programming.devEnglish · edit-28 days agomessage-square13fedilinkfile-text
minus-squarecalcopiritus@lemmy.worldlinkfedilinkarrow-up0·8 days agoI don’t think anyone actually chooses XML. There’s no reason to use it over JSON unless you need to.
minus-squareFonzie!@ttrpg.networklinkfedilinkarrow-up0·1 day agoXML can validate itself and there’s the self-documenting WSDL; so while it has more overhead and an ugly syntax it can make for a more stable and earlier to understand API for your API’s consumers.
minus-squarecalcopiritus@lemmy.worldlinkfedilinkarrow-up1·1 day agoThis point is always stated about XML as if it were the most important part of choosing XML. But jsonschema exists. It has the same capability.
minus-squareFonzie!@ttrpg.networklinkfedilinkarrow-up1·1 day agoAh but… Nobody uses that! Because then you wouldn’t choose JSON
I don’t think anyone actually chooses XML. There’s no reason to use it over JSON unless you need to.
XML can validate itself and there’s the self-documenting WSDL; so while it has more overhead and an ugly syntax it can make for a more stable and earlier to understand API for your API’s consumers.
This point is always stated about XML as if it were the most important part of choosing XML.
But jsonschema exists. It has the same capability.
Ah but… Nobody uses that! Because then you wouldn’t choose JSON