{
  "id": 22823983,
  "title": "Debug a JSON diff with a real open-source regression",
  "url": "https://urgent.news/2026/11/30/debug-a-json-diff-with-a-real-open-source-regression",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-30T19:19:09.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/techsfc/debug-a-json-diff-with-a-real-open-source-regression-5d78"
  },
  "original_language": null,
  "account": "Debugging a JSON diff requires understanding how array changes are reported. The JSON diff exercise in Fix Real Bugs shows beginners how to locate and fix such bugs. The first clue in the JSON array diff exercise comes from inspecting what the checker expects when the second element of the items array changes. This expected path is items[1]. By editing the function in the browser and rerunning the regression checks, you can pinpoint the issue. After the checks pass, you can compare the solution to the original upstream PR to see how different approaches handle the same problem. The workshop uses a focused extract of code, so specific paths matter, especially when dealing with large arrays or nested objects. The check against the exact path is crucial for capturing the bug someone using the diff would need to see. Fix Real Bugs also includes exercises on various topics, such as a clock, percentage layout, plural acronyms in slug generation, and negative decimal durations. You can start with any lesson without signing up. If you prefer to edit locally, download a lesson workspace and rerun the Playwright regression check. For a more personalized experience, you can use a coding agent that offers coaching through exercises or helps translate historical fixes into new solutions. To maintain the debugging practice, ask the agent to help read the failing assertion and provide one hint at a time. Feedback on the starting failure and hints is encouraged in the GitHub repository.",
  "summary": "A JSON diff that reports items can tell you which array changed. It can't tell you that the second element changed. That gap is the first exercise in Fix Real Bugs , a free browser workshop built from historical open-source fixes. Try one debugging exercise Open the JSON array diff exercise and run the checks against the starting code. Inspect what the checker expects when the second element of…",
  "summary_source": "publisher",
  "key_points": [],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}