Modern XMPP project discussion - 2024-04-04


  1. 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?

  2. 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)

  3. 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.

  4. latex

    Just seems a bit odd using JSON in relation to a protocol that's dead serious on XML usage.

  5. jonas’

    use the right tool for the job

  6. 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.