Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
go version go1.10 darwin/amd64
Parsing a json with a comma in the value will fail if the target variable is byte and not string:
Unmarshalled json object
illegal base64 data at input byte 4
The text was updated successfully, but these errors were encountered:
Or is this behavior intended?
Sorry, something went wrong.
It is intended.
Explanation for others looking at this: if target field is of type byte json library expects data to be base64 encoded. It data is not base64 encoded use a field of type string as target on unmarshalling.
No branches or pull requests