Task: JSON Serialize and Deserialize ES6 Maps
Task: JSON Serialize and Deserialize ES6 Maps: a task in Terminal-Lego-15k (Harbor dataset). ES6 Map objects are not directly serializable using JSON.stringify() — calling JSON.stringify() on a Map simply returns "{}" . Your task is to create a Node.js module that provides reliable utility…
The task
ES6 `Map` objects are not directly serializable using `JSON.stringify()` — calling `JSON.stringify()` on a `Map` simply returns `"{}"`. Your task is to create a Node.js module that provides reliable utility functions to serialize ES6 `Map` objects to JSON strings and deserialize them back to `Map` objects.
Part of PrimeIntellect/Terminal-Lego-15k.