3 ms·
> XML where parsing is order of magniture more complex than JSON You're supposed to use an off-the-shelf XML/JSON parser, not write it yourself.
by bmn__ 8y ago
> XML where parsing is order of magniture more complex than JSON
You're supposed to use an off-the-shelf XML/JSON parser, not write it yourself.
- JeremyBanks 8y agoEven if you don't parse it yourself, XMLs data model is usually more of a chore to consume.
- tannhaeuser 8y agoXML/SGML is highly appropriate for representing rich text, though, which is the purpose of chat apps/logs. Using JSON you'd have to invent ad-hoc markup on top of JSON, loosing any advantage it may have.
- Boulth 8y ago> Using JSON you'd have to invent ad-hoc markup on top of JSON That's basically a description of ActivityPub that wraps HTML in JSON!
- JeremyBanks 8y agoNobody uses rich text formatting, and even if they did, the message body is only a small fraction of the total protocol content.