News for hackers. Stuff that matters.
Re:JSONSelect by aquark on Saturday May 21, 2011 @09:43AM (#2570848)
But what happens in the case where there is no author element?

With normal javascript you would get an exception .. hopefully with this you just get back undefined without having to check every step in the path.

Re:JSONSelect by lloydhilaiel on Saturday May 21, 2011 @10:17AM (#2570895)
with the reference implementation:

JSONSelect.match(".nonexistantkey .somechild", obj) returns []

Alternately, if you use the JSONSelect.forEach() method your callback will just not be invoked.

So no existence testing before access for recursive values. A main benefit of this thing in javascript.