AINewsnow

I counted tokens for the same data in 7 formats. Pretty JSON costs 3 CSV

This story is from 2026-10-02. It is preserved in the archive; the latest stories are on the live feed.

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 counted. Short version: pretty-printed JSON uses about 3× the tokens of CSV. The setup A product tabl…

Read the full story at DEV Community — AI ↗

Timeline · 1 report

  1. 2026-10-02 17:03 · DEV Community — AI
    I counted tokens for the same data in 7 formats. Pretty JSON costs 3 CSV

More stories

  1. NVIDIA DGX Spark 64GB Gives Developers More Ways to Build and Scale Local AI — NVIDIA Blog
  2. Gemini 4 Argon: our next era of frontier intelligence — Google Gemini Blog
  3. Google tests its plan for AI data centers in space with Project Suncatcher — Scientific American
  4. Guided Vision in Gemini Live: built for accessibility — Google Gemini Blog
  5. Bring near-Astra intelligence to everyday work with GPT-6.1 Sol on Amazon Bedrock — AWS Machine Learning Blog
  6. Google Releases New Gemini Model With Guardrails Amid A.I. Safety Debate — New York Times Technology
  7. Google rolls out Gemini 4 Argon, its most advanced AI model — CNBC Technology
  8. Build a multi-agent music production pipeline on Amazon Bedrock AgentCore Runtime Instances — AWS Machine Learning Blog

Get the daily brief of stories like this at 6:30 every morning →