Submitted by musou in programming
lainproliant wrote
Reply to comment by Moonside in ruby lets you put an array inside itself by musou
I actually run into these types of circular reference loops often in JS, especially when I want to serialize arbitrary objects to JSON. Some other formats such as YAML provide reference semantics and are thusly able to deal with circular references, but JSON does not.
Viewing a single comment thread. View all comments