r/PythonLearning • • Feb 22 '26

JSON vs TOON

Post image

Anyone have thoughts on this?

What’s your opinion on using a Toon-style JSON approach? Curious to hear different perspectives and real-world experiences.

1.3k Upvotes

167 comments sorted by

View all comments

21

u/[deleted] Feb 22 '26

Thoughts:

  • JSON is more readable where data is non-uniform (ie not like this example). In this situation TOON is good, but CSV would be better. TOON appears to work best when a mixture of uniform and non-uniform data is needed, a scenario which is unusual but perhaps not that unusual.

  • The standard for TOON is still evolving and not finalised. That may be an issue for long term support.

  • Compatibility is important. A lot of software has support for JSON and CSV. TOON is currently supported in the most popular languages, but not in some of the less popular ones.

  • Overall, what I'm seeing is not terrible. It's something I might consider using in future, for the right use case. It's not something I'm going to rush off and start using right away tho.

1

u/bradfordmaster Feb 25 '26

I'm really bugged by the [2]. Why would you need the length encoded like that, such that every write has to touch the header? And so merging is complex, residually in parallel