Re:JSON Feed
by metheus on Wednesday May 17, 2017 @02:05PM
(#14361051)
We don't prefer JSON to XML for any reason other than that XML is terrible by comparison.
[ Parent
| on HN ]
Re:JSON Feed
by dangerlibrary on Wednesday May 17, 2017 @02:16PM
(#14361164)
It'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.
I 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...
On 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. =)