-
-
Notifications
You must be signed in to change notification settings - Fork 230
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
Decoding nested map with integer keys #314
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For my use-case I use nested maps with integers as keys (instead of strings as usual). For example this:
This is something encoded by this library. But I can't seem to decode this.
Expected Behavior
Decode without errors.
Current Behavior
msgpack: invalid code=0 decoding string/bytes length
Possible Solution
I don't know. I've tried 'SetMapDecoder' with UntypedMap, but this doesn't work as well.
Steps to Reproduce
https://play.golang.org/p/nOhguZK1vJo
or
https://play.golang.org/p/2RR-CfGQUAu
It appears that the sub-map (starting at the third byte) is decoded as a map[string]interface{}.
The text was updated successfully, but these errors were encountered: