encoding/json: second decode after error impossible #31701
Labels
FeatureRequest
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 did you do?
Read a byte stream with multiple JSON's. The first has a syntax error.
What did you expect to see?
I expected "Decode" to save the position and continue working after the error. Without a syntax error, it works as expected...
What did you see instead?
It's impossible to decode a second time after a error, e.g.:
https://play.golang.org/p/0Z-lz_Wj9D7
The text was updated successfully, but these errors were encountered: