Skip to content
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

HashMaps are inconsistently decoded into Objects/Maps #45

Open
ntr-808 opened this issue Nov 28, 2019 · 0 comments
Open

HashMaps are inconsistently decoded into Objects/Maps #45

ntr-808 opened this issue Nov 28, 2019 · 0 comments

Comments

@ntr-808
Copy link

ntr-808 commented Nov 28, 2019

When the decoder encounters a HashMap keyed by integers it (correctly) decodes them into a JS Map, however the same field where the map is empty is decoded into a regular JS Object causing interfacing code to error unless it handles both cases.

Is there a way to mark a field to be explicitly always a Map/Object?

Test data and MRE coming soon, just thought I would begin the process...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant