1.0.2 • Published 5 years ago

jsonjuggle v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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)