-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: The Map type is not saved to a file #603
Comments
I think it's not a bug. A Map cannot be converted to JSON natively. const map = new Map();
map.set('a', 1);
map.set('b', 2);
map.set('c', 3);
JSON.stringify(map) // return '{ }' You should convert your map into object to save it.
|
Yeah, for serializing a map, one would have to do something like this |
The text was updated successfully, but these errors were encountered: