JSONSelect icon indicating copy to clipboard operation
JSONSelect copied to clipboard

Protect against circular objects

Open FireyFly opened this issue 14 years ago • 1 comments

Currently, feeding a circular object to JSONSelect means it'll recurse until the call stack is exceeded. Keeping track on which objects has been traversed and protecting against circular references (i.e. not traversing objects that have already been traversed) would prevent this from happening.

For an example of how it can be done, you can look at node's util.inspect (though you probably already know about it, I bet ;) ).

FireyFly avatar Oct 27 '11 17:10 FireyFly

same issue here! thx for this commit!

santivazquez avatar May 10 '12 14:05 santivazquez