Earlz Earlz - 10 months ago 56
JSON Question

Define "cyclic data structures"

At the JSON site it says

JSON does not support cyclic data
structures, so be careful to not give
cyclical structures to the JSON

What does it mean by this? Can someone give me an example of such a data structure in Javascript?

var cyclic = {};
cyclic.somekey = cyclic;
cyclic.another = "Hello world!";

Now you can do this, for example: