condense-json 1.1

Simon Willison's Weblog Simon Willison's Weblog

Release: https://github.com/simonw/condense-json/releases/tag/1.1">condense-json 1.1


After shipping https://simonwillison.net/2026/Aug/2/condense-json/">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(). https://github.com/simonw/condense-json/pull/8">#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 https://github.com/simonw/condense-json/blob/1.1/tests/test_properties.py">some round-trip tests using the https://hypothesis.readthedocs.io/">Hypothesis property-based Python testing library.




Tags: https://simonwillison.net/tags/json">json

Read full article at Simon Willison's Weblog →