Mapping JSON key-value directly into a Map (object.Entries does not work)
Advertisements I have a simple object structure like this: { "Anna": [ "ItemA", "ItemB", ] } and I need to create a Map out of it. Using new Map(Object.entries(json)) results into the following, where the key is 0 instead of the name "Anna", which I would need: { "key": "0", "value": { "Anna": [ "ItemA",… Read More Mapping JSON key-value directly into a Map (object.Entries does not work)