4 ms·
We don't prefer JSON to XML for any reason other than that XML is terrible by comparison.
by metheus 9y ago
We don't prefer JSON to XML for any reason other than that XML is terrible by comparison.
- bdr 9y agoThat's not a reason.
- dangerlibrary 9y agoIt's funny to me that at the same time people are flocking to languages with strong, flexible type systems (often with compile-time checks), we are fleeing from a strongly typed data interchange format in favor of a dynamic bag of objects and arrays.
- pg_is_a_butt 9y agoit's funny to me that you think those are "people"
- algesten 9y agoI think that's because even if the data interchange format is strongly typed, as a consumer you often still must expect _anything_. I've yet to work on a project that handles XML where we have a XSD prevalidation step that makes the reading of some deeply nested XML tag feel safe. Unless we count XML <-> data object binding back in the java days. Not sure that felt any better...
- eropple 9y agoOn the flip side, I've only ever not had an XSD when I was building something myself and actively didn't care. The truth, I tend to suspect, lies somewhere in between. =)