Pretty JSON costs 3× CSV in tokens. Columnar JSON costs the same. (I measured 9 formats)
Most of us paste data into LLM prompts as JSON, often straight from JSON.stringify(data, null, 2). I had never checked what that costs in tokens, so I took one table, wrote it in seven formats and cou
Oct 2, 20265 min read
