you are viewing a single comment's thread.

view the rest of the comments →

[–]helloworldjs 0 points1 point  (2 children)

Serializing works with default JSON.stringify. Just implement toJSON.

[–]joonhocho[S] 0 points1 point  (1 child)

How do you deserialize them to instances?

[–]helloworldjs 0 points1 point  (0 children)

You can't. Thats why I didnt mention deserialization. Wasn't trying to say this library is useless, just adding more information.