A node module to read and search out JSON data from an input JSON file('*.json'). Inputs are the JSON file path and a Search Path contructed as a string array of Keys. The Search Path can by an Empty array, in that case this module will return entire file data. The last parameter of the module is the returned function handle, that can be invocked to fetch the returned JSON data. If specified file is not present the returned function handle will contain Error in JSON format instead of the actual data.
npm install read-search-json
var rsj = require('read-search-json');
rsj.readJSON("<json file with path>",[<"str_1,"str_2",...,"str_n">],function(data,err){
if(data)
console.log(data);
if(err)
console.log(err);
})
not applicable