Skip to main content
The 2024 Developer Survey results are live! See the results
5 events
when toggle format what by license comment
Apr 23 at 13:39 comment added Stefnotch This answer is very simple, but could be improved with an explanation. It also is only applicable when round-tripping is not a requirement, as there is no unambiguous way of JSON.parse()ing the result.
Apr 23 at 13:37 comment added Stefnotch That is a good point, I'm sorry for missing that. Let me remove my comment and add a new, factually correct one.
Apr 23 at 7:25 comment added Vasily Ivanov It will work correctly with nested Maps because if a Map is converted into an Array, the Array members (including nested Maps) will be handled by the same logic.
Dec 13, 2023 at 23:06 review Low quality answers
Dec 15, 2023 at 8:35
Dec 13, 2023 at 22:49 history answered Vasily Ivanov CC BY-SA 4.0