Skip to main content
The 2024 Developer Survey results are live! See the results
3 events
when toggle format what by license comment
Nov 30, 2019 at 9:06 comment added Lonnie Best More about that here.
Nov 30, 2019 at 6:53 comment added Lonnie Best Without testing your answer, I already appreciate how it brings attention to the problem of nested Maps. Even if you successfully convert this to JSON, any parsing done in the future has to have explicit awareness that the JSON was originally a Map and (even worse) that each sub-map (it contains) was also originally a map. Otherwise, there's no way to be sure that an array of pairs isn't just intended to be exactly that, instead of a Map. Hierarchies of objects and arrays do not carry this burden when parsed. Any proper serialization of Map would explicitly indicate that it is a Map.
Jun 18, 2019 at 10:20 history answered Imamudin Naseem CC BY-SA 4.0