-
Notifications
You must be signed in to change notification settings - Fork 211
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
Custom types unmarshal fails #156
Comments
First of all, thanks for this library. Very helpful. I believe I'm running into the same problem as @vickyramachandra. I need to unmarshal a timestamp encoded as a string. The situation is virtually identical to the example shown in the Custom types section of the README. However, upon unmarshaling with
|
@shwoodard 's commit 3c8221b seem to have broken it. func handleStruct(
attribute interface{},
fieldValue reflect.Value) (reflect.Value, error) {
...
if err := json.Unmarshal(data, &node.Attributes); err != nil {
return reflect.Value{}, err
}
....
} As in there, ^ EDIT: Heads up: It seems that that commit is not in sequence with the previous commit in |
Thank you for the excellent investigative work, @botverse. If I must I think I can get by with the March commit until this issue is resolved. |
in this pull request #163 |
Hey there,
If i have a struct like this
The value for
id
will not be mapped into the field. So any custom types which has their ownmarshal
orunmarshal
implementation doesn't work!The text was updated successfully, but these errors were encountered: