encoding/json: parsing comma in value to []byte field fails #24428
Labels
Comments
Or is this behavior intended? |
It is intended. Explanation for others looking at this: if target field is of type |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Go are you using (
go version
)?go version go1.10 darwin/amd64
What did you do?
Parsing a json with a comma in the value will fail if the target variable is []byte and not string:
https://play.golang.org/p/5dDCW9mwDv8
What did you expect to see?
Unmarshalled json object
What did you see instead?
Error:
illegal base64 data at input byte 4
The text was updated successfully, but these errors were encountered: