borc icon indicating copy to clipboard operation
borc copied to clipboard

HashMaps are inconsistently decoded into Objects/Maps

Open ntwl-xyz opened this issue 6 years ago • 0 comments

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...

ntwl-xyz avatar Nov 28 '19 01:11 ntwl-xyz