I gave my agent a broken JSON.parse — did it spot the trailing comma?
I built a small tool to test my own AI agent in 10 minutes, instead of trusting that it "looked right." One test from it: "Find the JSON bug." The prompt is a single line: const settings = JSON.parse('{"theme":"dark",}'); That trailing comma after "dark" is invalid JSON, so JSON.parse fails. The ch…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-11-12 15:03 · DEV Community — AI
I gave my agent a broken JSON.parse — did it spot the trailing comma?