knife-json
Get value of object easily use path
NOTE: not supprt the array current
API
- knife(object, path) => Get the value of the path
- knife.paths(object) => get the paths of the object
- knife.contain(object, path) => check the paths of the object
var knife = ; var testdata = root: 'root' name: 'yt' nested: nested1: nested2: "nested3" ; console // nested3console // [ 'root', 'name', 'nested.nested1.nested2' ]console //true