{"id":15331086,"url":"https://github.com/janl/node-jsonpointer","last_synced_at":"2025-05-15T17:04:01.212Z","repository":{"id":44853767,"uuid":"2044596","full_name":"janl/node-jsonpointer","owner":"janl","description":"JSON Pointer (RFC6901) implementation for Node.js","archived":false,"fork":false,"pushed_at":"2022-12-08T06:36:05.000Z","size":578,"stargazers_count":196,"open_issues_count":5,"forks_count":28,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-30T21:02:40.014Z","etag":null,"topics":["json","jsonpointer","rfc6901"],"latest_commit_sha":null,"homepage":"https://tools.ietf.org/html/rfc6901","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/janl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-07-13T22:20:18.000Z","updated_at":"2025-02-07T10:53:20.000Z","dependencies_parsed_at":"2023-01-24T22:16:08.947Z","dependency_job_id":null,"html_url":"https://github.com/janl/node-jsonpointer","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janl%2Fnode-jsonpointer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janl%2Fnode-jsonpointer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janl%2Fnode-jsonpointer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janl%2Fnode-jsonpointer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janl","download_url":"https://codeload.github.com/janl/node-jsonpointer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253421676,"owners_count":21905797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["json","jsonpointer","rfc6901"],"created_at":"2024-10-01T09:54:44.768Z","updated_at":"2025-05-15T17:04:01.192Z","avatar_url":"https://github.com/janl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"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 \u003cjan@apache.org\u003e \u0026 Marc Bachmann \u003chttps://github.com/marcbachmann\u003e\n\nThanks to all contributors.\n\n## License\n\nMIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanl%2Fnode-jsonpointer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanl%2Fnode-jsonpointer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanl%2Fnode-jsonpointer/lists"}