{"name":"jsonpointer","description":"Simple JSON Addressing.","tags":["util","simple","util","utility"],"version":"1.0.1","author":{"name":"Jan Lehnardt","email":"jan@apache.org"},"repository":{"type":"git","url":"git://github.com/janl/node-jsonpointer.git"},"bugs":{"url":"http://github.com/janl/node-jsonpointer/issues"},"engines":["node >= 0.4.9"],"main":"./jsonpointer","scripts":{"test":"node test.js"},"_npmJsonOpts":{"file":"/Users/jan/.npm/jsonpointer/1.0.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"jsonpointer@1.0.1","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.17","_nodeVersion":"v0.4.9","_defaultsLoaded":true,"dist":{"shasum":"ad2d547d447214f4d0c595fad0cea10c9e063c55","tarball":"http://registry-npm.ywwl.com/jsonpointer/download/jsonpointer-1.0.1.tgz","integrity":"sha512-EmI6ocUWDgiumSv4Wg0eayljPSYMWyPs3Da10mhKH+8vItx/wll6QPiwkc9Av7qBPNzBnv8Szy6Bfwgxga43Hw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEFTYmegeDug5UtvfhRIeTCdRm2tjvjwwLrHp230XVYLAiEA40BEG/je+J09KWgmIuw05QKLbQyLIWwmuGSVP7PqO68="}],"size":1460,"noattachment":false,"key":"/jsonpointer/-/jsonpointer-1.0.1.tgz"},"directories":{},"readme":"# JSON Pointer for Node.js\n\nThis is an implementation of [JSON Pointer](https://tools.ietf.org/html/rfc6901).\n\n## CLI\n\nLooking to filter JSON from the command line? Check out [jsonpointer-cli](https://github.com/joeyespo/jsonpointer-cli).\n\n## Usage\n```javascript\nvar jsonpointer = require('jsonpointer');\nvar obj = { foo: 1, bar: { baz: 2}, qux: [3, 4, 5]};\n\njsonpointer.get(obj, '/foo');     // returns 1\njsonpointer.get(obj, '/bar/baz'); // returns 2\njsonpointer.get(obj, '/qux/0');   // returns 3\njsonpointer.get(obj, '/qux/1');   // returns 4\njsonpointer.get(obj, '/qux/2');   // returns 5\njsonpointer.get(obj, '/quo');     // returns undefined\n\njsonpointer.set(obj, '/foo', 6);  // sets obj.foo = 6;\njsonpointer.set(obj, '/qux/-', 6) // sets obj.qux = [3, 4, 5, 6]\n\nvar pointer = jsonpointer.compile('/foo')\npointer.get(obj)    // returns 1\npointer.set(obj, 1) // sets obj.foo = 1\n```\n\n## Testing\n\n    $ npm test\n    All tests pass.\n    $\n\n[![Node.js CI](https://github.com/janl/node-jsonpointer/actions/workflows/node.js.yml/badge.svg)](https://github.com/janl/node-jsonpointer/actions/workflows/node.js.yml)\n\n## Author\n\n(c) 2011-2021 Jan Lehnardt <jan@apache.org> & Marc Bachmann <https://github.com/marcbachmann>\n\nThanks to all contributors.\n\n## License\n\nMIT License.\n","publish_time":1312140655058,"maintainers":[{"name":"jan","email":"jan@apache.org"},{"name":"marcbachmann","email":"marc.brookman@gmail.com"}],"_cnpm_publish_time":1312140655058,"dist-tags":{"latest":"5.0.1"}}