1.4.1 • Published 7 years ago

util-json v1.4.1

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

util-json

about json Traversal operation

Example

const utilJson = require('util-json');
var student = {
  "jhon":{
    "sex":'man',
    "age":19,
    "score":{
      "sx":99,
      "yw":88
    }
  },
  "mary":{
    "sex":"woman",
    "age":18,
    "score":{
      "yy":150
    }
  }
};
// var result = utilJson.findKeyByIndex(0,student,0);
// var result = utilJson.findObjectByKeys('sex',student);
// var result = utilJson.findObjectByKey('sx',student);
var result = utilJson.levelObjectByKey("jhon","sex",student);
console.log(result);
1.4.1

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago