test: define the writeJSON helper the corecmd stub handlers call
Commit

PR #1626 landed corecmd_list_test.go / corecmd_mutation_test.go calling a writeJSON helper that was never defined anywhere in the package, so main's Lint (typecheck) and Tests jobs are red and every open PR inherits the failure from the merge preview.
Co-Authored-By: Claude Fable 5 noreply@anthropic.com Entire-Checkpoint: 876de296c7bd
Checkpoints
Checkpoint 1