docs: fix SecureJSON default prefix and default-binding example output (#4861)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
The SecureJSON docs and the Context.SecureJSON comment said the default prefix is "while(1),". The engine sets secureJSONPrefix to "while(1);" (gin.go), and the example output a few lines below already shows the semicolon. The default-values binding example printed a "Colors" field that the Person struct does not have; the struct's array field is Addresses with default "foo bar", which binds to ["foo","bar"].
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Diff stats
2 files+3 added−3 removed
- other:+3 added−3 removed