Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
JSON Pointer implementation for NodeJS
CoffeeScript JavaScript
branch: master

This branch is 4 commits ahead, 17 commits behind janl:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
index.coffee
package.json
test.js

README.md

JSON Pointer for nodejs

This is an implementation of JSON Pointer.

Usage

var jsonpointer = require('jsonpointer'),
    instance = {
        foo: 1,
        bar: {
            baz: 2
        },
        qux: [3, 4, 5]
    };

jsonpointer.get(instance, '/foo');
jsonpointer.get(instance, '/bar/baz');
jsonpointer.get(instance, '/qux/0');

jsonpointer.set(instance, '/qux/0', 6);
jsonpointer.del(instance, '/qux/2');

Author

(c) 2011 Jan Lehnardt jan@apache.org (c) 2012 Andrei Neculau @andreineculau

License

MIT

Something went wrong with that request. Please try again.