Simon Willison’s Weblog

Subscribe

3rd August 2026

Release condense-json 1.1 — Python function for condensing JSON using replacement strings

After shipping condense-json 1.0 I started integrating it into LLM, and found there were some desirable new features already:

  • Replacements object can now include values other than strings. These will be identified and used as structural replacements by condense_json() and uncondense_json(). #8
  • Objects can be used as the basis for merge operations. condense_json() will identify if there are objects that are a close match and will store instructions for keys to update or delete. uncondense_json() can then apply these merges.

I also added some round-trip tests using the Hypothesis property-based Python testing library.

This is a beat by Simon Willison, posted on 3rd August 2026.

Monthly briefing

Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.

Pay me to send you less!

Sponsor & subscribe