-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
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? Sign in to your account
Unable to unmarshal date using json-iterator. #313
Comments
Doesn't still work on the latest version = "1.1.5" |
@aafreensheikh96 wow,
Using Delve with your
Then running it:
|
@shatil Please note that unmarshaling works correctly when the type myType struct {
Date Date `json:"date"`
Text string `json:"text"`
} |
Thank you @taowen |
zhenzou
pushed a commit
to zhenzou/jsoniter
that referenced
this issue
Feb 2, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to use a custom struct which implements the
json.Unmarshaler
interface as a key in a map(map[MyCustomType]bool
). This fails when I am trying to usejsoniter
but works correctly if I use the standard library json package. Minimal code example to reproduce the issue:Output:
The text was updated successfully, but these errors were encountered: