{
  "slug": "sqlite-adds-json-array-insert-f508056c374a",
  "title": "SQLite adds json_array_insert()",
  "tools": [
    "sqlite3"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-04-09T00:00:00.000Z",
  "announced_at": "2026-04-09T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When inserting an element at the beginning or middle of a JSON array, call `json_array_insert(json, path, value, ...)`; the path must end with an array element reference such as `[1]`.",
    "examples": [
      "SELECT json_array_insert('[1,2,3]', '$[1]', 'new');"
    ],
    "gotchas": [
      "json (required): JSON value to modify.",
      "path (required): Path to the target array position; must end with an array element reference (`[…]`).",
      "value (required): Value to insert at the specified position.",
      "additional path/value pairs: More paths and values may be supplied in pairs; edits occur in sequence.",
      "Prerequisite: SQLite 3.53.0 or later, where `json_array_insert()` was added."
    ]
  },
  "why_it_matters": "Insert an element into a JSON array while querying or updating SQLite data.",
  "sources": [
    "https://sqlite.org/changes.html#version_3_53_0",
    "https://sqlite.org/json1.html#jarrayins"
  ],
  "rank": 0.96031,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-a49543ba6801fed1-5:gate",
    "evidence_hash": "4ceed61064eaa0ef5542be47b5fd5715906111a30c90d12d5deaa07f0c873c3e"
  },
  "review": {
    "draft_hash": "e981a150d513423629f231adef9425f11ab9798e96f6cee992b0fcf20b18816b",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2b-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.62 (>= 0.6 needed)."
  }
}
