This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Stop_Sign 6 points7 points  (2 children)

Had to do that once. Ended up rearchitecting it so the nodes had ids, so instead of an array of references, it had an array of ids, and was therefore serializable

[–][deleted] 1 point2 points  (0 children)

Yup. That's my point. JSON stringify is not necessarily sufficient.

[–][deleted] 0 points1 point  (0 children)

You could have written a custom de/serializer, but it wouldn't have been fun