jsonjuggle
v1.0.2
Published
Easly update your json objects without headache.
Downloads
6
Readme
Description
Warning ! Under development
Easly update your json objects without headache.
npm i --save jsonjuggle
Getting started
const JSONJuggle = require('jsonjuggle);
const data = {
users:[
{ name: "joe" },
{ name: "amadou" }
]
}
let myJuggle = new JSONJuggle( data );
console.log( myJuggle.data.users.add({ name: "awa" }) );
Documentation
Objects
set(key,value)
return the root object updated
remove(key)
return the root object updated
Arrays
add(object)
return the root object updated
remove(from, length)
return the root object updated
removeFilter( jsonFilter )
return the root object updated
TODO
- Direct access from JSONJuggle instance (not .data)