condense-json 1.1 发布

Simon Willison 博客·2026-08-03 12:56·33天前
AI 导读

condense-json 1.1 发布,新增两项功能:替换对象现可包含字符串以外的值,由 condense_json() 和 uncondense_json() 识别并用作结构替换;对象可作为合并操作基础,condense_json() 会识别近似匹配的对象并存储键更新或删除指令。项目还新增了基于 Hypothesis 属性测试库的往返测试。

Simon Willison 博客
53AI 编辑部评分,满分 100

condense-json 1.1 发布

2026-08-03 12:56· 33天前
AI 导读

condense-json 1.1 发布,新增两项功能:替换对象现可包含字符串以外的值,由 condense_json() 和 uncondense_json() 识别并用作结构替换;对象可作为合并操作基础,condense_json() 会识别近似匹配的对象并存储键更新或删除指令。项目还新增了基于 Hypothesis 属性测试库的往返测试。

Release: condense-json 1.1

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.

Tags: json

来源:Simon Willison 博客· simonwillison.net