Thanks for writing jsonQ! I like the concept, and think this library is very helpful.
I noticed that, at least when running jsonQ in a node.js environment, I get a run-time error if I call the "pathValue" function when requesting a path that doesn't exist.
I made a small change so that undefined is returned instead.
Hi s-yadav,
Thanks for writing jsonQ! I like the concept, and think this library is very helpful.
I noticed that, at least when running jsonQ in a node.js environment, I get a run-time error if I call the "pathValue" function when requesting a path that doesn't exist.
I made a small change so that
undefined
is returned instead.For example,
Originally, jsonQ would throw an error in the second line. With the change I am proposing, jsonQ would return
undefined
instead.What do you think?
Thanks, jayyuen1