json-observer

watching JSON object change


License
ISC
Install
npm install json-observer@2.0.0

Documentation

JSONObserver wather

watching JSON data change

##how to use

let {JSONObserver} = require('json-observer');

let obj = {a: '',b: ''};
let hander1 = function (obj,oldval,newval) {
    console.log('had invoked...');
};
new JSONObserver(obj, hander1);

obj.a = 'a';