Timeline for How do you JSON.stringify an ES6 Map?
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 10, 2023 at 16:11 | history | edited | Evan Carroll | CC BY-SA 4.0 |
deleted 22 characters in body
|
S Aug 28, 2023 at 16:30 | history | suggested | Anbuselvan Annamalai | CC BY-SA 4.0 |
Code Improvements
|
Aug 21, 2023 at 7:00 | review | Suggested edits | |||
S Aug 28, 2023 at 16:30 | |||||
Jul 28, 2022 at 15:55 | comment | added | Stefnotch | As pointed out in Oriol's answer, this is incorrect. Map keys can be objects, which this answer doesn't handle. | |
Oct 29, 2021 at 23:40 | comment | added | roim |
> Going to an JavaScript Object < Shouldn't it have code to handle keys such as __proto__ ? Or you can damage the entire environment by trying to serialize such a map. Alok's response doesn't suffer from this, I believe.
|
|
Jan 11, 2019 at 5:42 | history | edited | Evan Carroll | CC BY-SA 4.0 |
added 7 characters in body
|
Jan 11, 2019 at 5:35 | history | edited | Evan Carroll | CC BY-SA 4.0 |
added 372 characters in body
|
Jan 11, 2019 at 5:27 | history | answered | Evan Carroll | CC BY-SA 4.0 |