Claim◆Article
The purpose of condense-json is to make it easier to store JSON that includes duplicated data from other related structures, which I use to save space in the SQLite logs generated by LLM.
The author states the motivation: condense-json helps store JSON containing duplicated data from related structures, and he uses it to save space in SQLite logs generated by LLM. ✦ AI generated
The author · Simon Willison's Weblog · 2026-08-02 · original ↗
The idea is to make it easier to store JSON that includes duplicated data from other related structures. I use it to save space in the SQLite logs generated by LLM - see PR #1586 for the latest iteration of that.
Read full article ↗excerpt · fair-use quotation
- ·Stores JSON with duplicated data from related structures
- ·Makes storing such JSON easier
- ·Used to save space in SQLite logs
- ·Logs generated by an LLM
Around this claim
This moment responds to
provides context → I'm trying to get braver at releasing 1.0 versions, and I've shipped 1.0 for condense-json, a library that's a year and a half old.The author · Simon Willison's Weblogprovides context → condense_json(input_json, replacements) scans the input JSON for strings or substrings present in the replacements object and replaces them with a special {"$r": ...} syntax in the output.The author · Simon Willison's Webloggives example → The scheme is a BLOB history column holding a compressed JSON array of all previous documents, plus an uncompressed parallel JSON array of timestamps.The author (as spoken to GPT-Live) · Simon Willison's Weblog