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
When writing custom UnmarshallJSON functions it would be extremely useful to have access
to the unquote, and unquotebytes functions from decode.go
The text was updated successfully, but these errors were encountered:
Can't you already get the same result using the following snippet?
var s string
err := json.Unmarshal(quoted_string, &s)
Sorry, something went wrong.
Please use Unmarshal.
We should make sure it is not too slow.
Labels changed: added priority-later, removed priority-triage.
Status changed to Accepted.
Labels changed: added go1.1.
Labels changed: added size-m.
Labels changed: added suggested.
Comment 7 by rickarnoldjr:
This issue was closed by revision 60abc6b.
Status changed to Fixed.
Rolling back in CL 7228061: breaks unmarshal of malformed JSON.
This issue was closed by revision eea0f19.
This second attempt breaks when custom decoders are used and fail. See issue #4784. Going
to roll this back and mark this working as intended. The existing paths are fast enough.
Status changed to WorkingAsIntended.
No branches or pull requests