On 11/16/2026 4:01 AM, rbowman wrote:
> On Sun, 15 Nov 2026 18:04:33 +0800, Johann 'Myrkraverk' Oskarsson wrote: >
>> JSON is probably the most popular today. I personally don't like it for >> being wasteful.
> > I think that record goes to XML. After 9/11 it became painfully apparent > that the various agencies couldn't communicate with each other. The DOJ > set out to fix that and XML was the shiny new technology. > > https://en.wikipedia.org/wiki/NIEMOpen > > Prior to the fix a return from a NCIC query was a reasonably well > formatted plain text document you could dump to a screen as is. It took a > decade before the XML schema was completely adopted. Now the return is a > huge XML document that requires XSLT to extract any human readable > information from. Progress. > > It doesn't help that the various schemae change. A tag like <Id/> can be > almost anything depending on its ancestry. The clients, of course, wanted > the return to be formatted exactly like the plain text returns they had > been getting for years. It kept me in a job, I guess.
I don't know how things are decided at the government scale, but most of the time when XML, JSON, etc., are decided upon, it's the developer who is deciding on a /library/ he's familiar with, rather than the underly- ing technology. Which means a lot of /shit decisions/ are made for peo- ple who need to interact with the resulting mess. JSON can be just as complicated. There's no rule that an "id": in a sub object is the same as the "id": in the parent object. The one thing XML has above JSON is the ability to -- in theory -- unambiguously embed one XML document in another. Most people don't need that, and can safely use JSON or similar instead. You can even use Lua for that matter; its syntax isn't that much differ- ent from JSON -- well, a passive subset I mean. Best wishes, and happy textual transaction messages!
-- Johann | email: invalid -> com | http://www.myrkraverk.com/blog/ I'm not from the Internet, I just work there. | via Easynews.com https://bsky.app/profile/myrkraverk.bsky.social | for ( ;; ) _:; Federated at https://fed.brid.gy/bsky/myrkraverk.bsky.social