Fix panic-json writing (#35691)

We broke it in #35263 when we changed the open options to use
`create_new`

Release Notes:

- N/A
74e17c2f64Julia Ryan committed on 8/6/2025, 1:11:16 AM· committed by GitHubparent5317526
1 file changedLine totals unavailable