{"name":"jsonpointer","description":"Simple JSON Addressing.","tags":["util","simple","util","utility"],"version":"2.0.0","author":{"name":"Jan Lehnardt","email":"jan@apache.org"},"contributors":[{"name":"Joe Hildebrand","email":"joe-github@cursive.net"}],"repository":{"type":"git","url":"git+ssh://git@github.com/janl/node-jsonpointer.git"},"bugs":{"url":"http://github.com/janl/node-jsonpointer/issues"},"engines":{"node":">=0.6.0"},"main":"./jsonpointer","scripts":{"test":"node test.js"},"license":"MIT","gitHead":"26ea4a5c0fcb6d9a2e87f733403791dd05637af8","homepage":"https://github.com/janl/node-jsonpointer#readme","_id":"jsonpointer@2.0.0","_shasum":"3af1dd20fe85463910d469a385e33017d2a030d9","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.10.36","_npmUser":{"name":"marcbachmann","email":"marc.brookman@gmail.com"},"maintainers":[{"name":"jan","email":"jan@apache.org"},{"name":"marcbachmann","email":"marc.brookman@gmail.com"}],"dist":{"shasum":"3af1dd20fe85463910d469a385e33017d2a030d9","tarball":"http://registry-npm.ywwl.com/jsonpointer/download/jsonpointer-2.0.0.tgz","integrity":"sha512-lEavSYWkPcCBtWh/BCsTaUfKKLKNakXf3Yjky/fHXwdmTPKOvHGIkx8ETHheQzidurgvfUQggxLCd0gVvmLHJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAHE0Il7BYsa6UAUyazqyrtcXwLG07T8nSucnY0xbCCuAiBotcJJyDqqAm1MsfSoUrXdh0DaHIKpcGtYy78vhR/pYg=="}],"size":2119,"noattachment":false,"key":"/jsonpointer/-/jsonpointer-2.0.0.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":1432672423372,"_cnpm_publish_time":1432672423372,"dist-tags":{"latest":"5.0.1"}}