Timeline for How do you JSON.stringify an ES6 Map?
Current License: CC BY-SA 4.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 5, 2022 at 22:09 | comment | added | asp47 |
Warning: Map can have non-string values as keys. This will not work if your Map keys are non-stringify-able types themselves : JSON.stringify(Object.fromEntries(new Map([['s', 'r'],[{s:3},'g']]))) becomes '{"s":"r","[object Object]":"g"}'
|
|
Dec 23, 2021 at 11:24 | history | answered | Rakesh Singh Balhara | CC BY-SA 4.0 |