encoding/json: SyntaxError's Offset is wrong after decoding some valid json #32399
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Run the following code (https://play.golang.org/p/gBI1qRBJvPa).
What did you expect to see?
Outputs
&json.SyntaxError{msg:"invalid character ':' after array element", Offset:20}
.What did you see instead?
Outputs
&json.SyntaxError{msg:"invalid character ':' after array element", Offset:22}
The text was updated successfully, but these errors were encountered: