this post was submitted on 16 Aug 2026
594 points (99.0% liked)

Open Source

48713 readers
794 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 7 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Zarobi@aussie.zone 9 points 1 week ago

I found a Stack Overflow thread where people discuss this and actually test it. Further down the page is a 2026 test. The results are it's basically the same, very little practical difference in normal usage. If you're auto saving a file every 30 seconds you will not notice any difference between XML and JSON.

Personally, I like XML more for data files like this. I would not reach for JSON as my first thought for deserealizing a complex object hierarchy. Stuff like, a polygon can have a drawing of type vector which can have n paths which each have exactly 2 points… easy to store and validate in XML. Quite messy and complicated in JSON.

<Drawing type="polygon">
  <Line color="#fed1aa">
    <Point x="6" y="7" />
    <Point x="69" y="420" />
  </Line>
</Drawing>