• schnurrito@discuss.tchncs.de
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    IMHO: XML is a file format, JSON is a data transfer format. Reinventing things like RSS or SVG to use JSON wouldn’t be helpful, but using XML to communicate between your app’s frontend and backend wouldn’t be either.

      • schnurrito@discuss.tchncs.de
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        Of course you can use XML that way, but it is unnecessarily verbose and complex because you have to make decisions, like, whether to store things as attributes or as nested elements.

        I stand by my statement that if you’re saving things to a file you should probably use XML, if you’re transferring data over a network you should probably use JSON.