Closed shuqingzai closed 7 months ago
Why? The number 1
is a valid JSON value.
Numeric strings should not validate
That's not what you're testing, but even still a string (numeric or otherwise) is also a valid JSON value.
it's a valid json value
Go version
go version go1.21.9 darwin/amd64
Output of
go env
in your module/workspace:What did you do?
What did you see happen?
See: https://go.dev/play/p/68tuuGoocva?v=goprev
What did you expect to see?
Numeric strings should not validate