Converting ES6 Maps to and from JSON Dec 29, 2015 When you have key-value data whose keys you don’t know in advance, it’s generally better to store it in an ES6 Map than in an object. But how do you convert Maps to and from JSON? view source Advertisement