Y
Hacker News
new
|
ask
|
show
|
jobs
by
0x696C6961
463 days ago
Last time I checked, the json/v2 package fixed the double decode problem by passing the decoder into the unmarshaling callback.
1 comments
shabbyrobe
463 days 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?
link