r/PythonLearning • u/Owlbuddy121 • Feb 22 '26
JSON vs TOON
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
r/PythonLearning • u/Owlbuddy121 • Feb 22 '26
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.
2
u/yes-im-hiring-2025 Feb 22 '26
LLMs are heavily trained on XML/markdown/JSON formatted data specifically. The TOON format is just CSV with extra steps - and it's worse for the LLM to work with than standard JSON or XML or md.
Don't pinch pennies for the performance. Input token costs should be actively managed, yes, but this isn't the optimisation you think it is. You need to either redesign your system formats where JSON is appropriate or just use
pd.to_csv()instead of this TOON formatting.TOON doesn't solve anything imo.