News for hackers. Stuff that matters.
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.
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.
Re:JSON Feed by algesten on Wednesday May 17, 2017 @02:44PM (#14361537)
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...

Re:JSON Feed by eropple on Wednesday May 17, 2017 @03:05PM (#14361742)
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. =)

Re:JSON Feed by bdr on Wednesday May 17, 2017 @02:13PM (#14361137)
That's not a reason.