2 ms·
Last time I checked, the json/v2 package fixed the double decode problem by passing the decoder into the unmarshaling callback.
by 0x696C6961 2y ago
Last time I checked, the json/v2 package fixed the double decode problem by passing the decoder into the unmarshaling callback.
- shabbyrobe 2y agoThat'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?