-
Notifications
You must be signed in to change notification settings - Fork 196
Closed
Description
Hello.
We have some data that is currently encoded with msgpack/msgpack-python and decoded with vmihailenco/msgpack. I'm trying to switch the decoding to msgp. I've added duplicate decoding code and reflect.DeepEqual the results and diffing them when it fails.
Where I'm getting with vmihailenco/msgpack:
TopicIDs: (map[int]bool) (len=1) {
(int) 360: (bool) true
},
with msgp I'm getting TopicIDs: (map[int]bool) <nil> silently. The docs say map must have str or bin keys, is that right? It also says "You can still manually decode arbitrary maps with the primitives built into the library", but how? So:
- such decoding silently loses the data, it should at least return an error
- how to manually decode such arbitrary maps?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels