Skip to content- Sources: primary
- Summary: Simon Willison released llm 0.37.3 after Homebrew moved to SQLite 3.54.1. In 3.54.0, select json_object('a', (select json_array(1))) returned {"a":[1]}, while 3.54.1 returns {"a":"[1]"}. D. Richard Hipp says a subquery returns SQL text, not JSON, so 3.54.1 is correct, and the workaround wraps the subquery in json().
- Why it matters: SQL that builds nested JSON from subqueries can silently change shape after a SQLite upgrade, so wrap such subqueries in json().