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.
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.