-
latex
> There are things like https://modules.prosody.im/mod_muc_members_json.html which is in use on xmpp.org for giving XSF members group chat membership and fancy Hats Why JSON and not XML? ↺
-
jonas’
latex, because this is based on members.json in the https://github.com/xsf/xmpp.org repository which existed already. JSON was chosen for that file because it was much easier to process with python/pelican for the website build (which was the original intent)
-
latex
Huh, weird. I'd expect Python to have decent support for XML, as Python's standard library is probably the most extensive of any language I've seen.
-
latex
Just seems a bit odd using JSON in relation to a protocol that's dead serious on XML usage.
-
jonas’
use the right tool for the job
-
jonas’
json.load(..) and then not having to do any further processing because the resulting data structure works natively in jinja2 is much better than writing custom code to transform XML into dicts.