Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (23 sloc) 0.646 kb

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

Jump to Line
Something went wrong with that request. Please try again.