News for hackers. Stuff that matters.
Re:BART - The Real BART API (beta) by thibaut_barrere on Tuesday January 26, 2010 @05:29AM (#1077457)
A large part of the developers I know (ie met physically) are not even aware of what JSON is (although it definitely contrasts with the web/ruby/python/javascript world).

Another point is that API to parse XML are built-in (and widely known) in almost all platforms, whereas JSON requires external libraries on some (I believe .Net, Java for instance).

Re:BART - The Real BART API (beta) by pvg on Tuesday January 26, 2010 @05:37AM (#1077464)
I think that's exactly it - XML integration, serialization to XML tends to be built-in to many existing environments. If the BART site is any clue, they are using ASPX/.NET.

The XML they are using is also very straightforward, elements-only, no attributes, namespaces, SOAP, other weirdness. It doesn't look any harder or easier to produce and consume than JSON. For part of their previous offering they are using a Google-designed format called GTFS which seems to be essentially well-defined CSV.

Re:BART - The Real BART API (beta) by IgorPartola on Tuesday January 26, 2010 @08:57AM (#1077713)
Encoding JSON is very easy. If that's all you are doing (e.g. only sending data to the client through say a web API), and you don't have a native library: build one.

Edit: also, I am a big fan of providing both. It can be done simply and cleanly, so why not.