FactArticle
The effect of condense_json can be reversed with uncondense_json(condensed, replacements).
The author notes that condense_json's effect is reversible via the uncondense_json function, completing the round-trip for the condensation. ✦ AI generated
The author · Simon Willison's Weblog · 2026-08-02 · original ↗
You can reverse the effect with uncondense_json(condensed, replacements).
Read full article ↗excerpt · fair-use quotation
Around this claim
This moment responds to
extends → 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 Weblogprovides 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 Weblog