Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
encoding/json: Decoding gives errPhase when unmarshaling a non-string literal into a TextUnmarshaler #9650
When decoding a non-string literal into an
Reading the code, it seems like it's supposed to return a type error when this happens
I'm not sure why
Note that this doesn't happen when json value is quoted as expected by TextUnmarshaler.
@rsc: Two questions about your fix: