Access nested json objects using simple string based paths.
npm install keyson
keyson(object, key [,separator]
var obj = {
name : 'test',
test : [
'hello',
'world',
{ nested : [1, 2, 3] }
]
};
keyson(obj, 'name'); // test
keyson(obj, 'test.0'); //hello
keyson(obj, 'test.2.nested.2'); // 3
MIT (c) Svetlana Linuxenko