Chen Jian's Java Blog 

JSON.stringify() won't work for ES6 Set

by Chen Jian

Posted on 2019-04-17 10:19 in Frontend

It will just return "{}", no matter if the Set is empty.

This also means deep clone based on JSON won't work.

If JSON.stringify() matters to you, use Array instead of Set

No one has commented yet.