condense-json 1.1

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Anyone using condense-json to shrink JSON payloads for LLM context can now replace non-string values and merge objects, not just strip strings.

Read this as

Simon Willison released condense-json 1.1, a Python tool that shrinks large JSON files by replacing repetitive content with short placeholders and then restoring them. Version 1.1 can now replace values that aren't just text, and can merge similar objects by recording which keys to add, update or delete. This matters for developers working with AI systems, since it helps fit more data into a limited context window.

Willison's condense-json 1.1 makes the open-source Python library more useful for LLM work: replacements can now be non-string values, and near-matching JSON objects can be merged via stored instructions rather than replaced wholesale. It's a niche developer tool, so the business impact is limited to teams building AI pipelines that pass large JSON data to language models.

condense-json 1.1 extends the replacement mechanism so replacement objects may hold non-string values, which condense_json() and uncondense_json() treat as structural replacements (issue #8). Objects that are close matches can now drive merge operations: condense_json() stores per-key update and delete instructions that uncondense_json() applies. Round-trip correctness is tested with Hypothesis property-based testing.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

condense-json 1.1 condense_json() uncondense_json() Hypothesis Pyodide

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading