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

1

u/pardoman Feb 24 '26

Toon exists to reduce the tokes needed when feeding JSON data to LLMs, where the data contains arrays of identical objects (like the image OP posted). It’s not ideal for most use cases tho.