zordius/json-path-processor — pull request #1 by lcmtwn (2014-10-01 03:33:32+00:00)
Title: add if condition check to handle JSON field value: 0 and empty string

While JSON field value is 0 or empty string, value() returns undefined not the right value. This patch adds condition check to handle the case. Test cases are also included.
ex:
var J = jpp({a: {b: {c: 0}}});
console.log(J.value('a.b.c'));