JSON Pointer for nodejs
This is an implementation of JSON Pointer.
Usage
var jsonpointer = ;var obj = foo: 1 bar: baz: 2 qux: 3 4 5; jsonpointer; // returns 1jsonpointer; // returns 2jsonpointer; // returns 3jsonpointer; // returns 4jsonpointer; // returns 5jsonpointer; // returns undefined jsonpointer; // sets obj.foo = 6;jsonpointer // sets obj.qux = [3, 4, 5, 6] var pointer = jsonpointerpointer // returns 1pointer // sets obj.foo = 1
Testing
$ node test.js
All tests pass.
$
Author
(c) 2011-2015 Jan Lehnardt jan@apache.org & Marc Bachmann https://github.com/marcbachmann
License
MIT License.