Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
0x696C6961
· 1y ago · 0 comments
Last time I checked, the json/v2 package fixed the double decode problem by passing the decoder into the unmarshaling callback.
Comments
[–]
shabbyrobe
1y ago
That's not what I found in my own experiments, I still had to unmarshal once inside the callback to get the `type` field out, then again once I knew what the type was. Do you have an example handy?