{"id":21283356,"url":"https://github.com/jg-rp/json-p3","last_synced_at":"2025-07-11T11:30:46.378Z","repository":{"id":193229186,"uuid":"688169870","full_name":"jg-rp/json-p3","owner":"jg-rp","description":"JSONPath, JSON Patch and JSON Pointer for JavaScript","archived":false,"fork":false,"pushed_at":"2025-03-18T12:50:53.000Z","size":5679,"stargazers_count":27,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-30T22:13:29.791Z","etag":null,"topics":["json","jsonpatch","jsonpath","jsonpointer"],"latest_commit_sha":null,"homepage":"https://jg-rp.github.io/json-p3/","language":"TypeScript","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/jg-rp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-06T19:46:20.000Z","updated_at":"2025-06-11T01:03:14.000Z","dependencies_parsed_at":"2024-04-19T08:24:56.797Z","dependency_job_id":"13637b4c-8905-49e9-9768-b1de1e6bdc61","html_url":"https://github.com/jg-rp/json-p3","commit_stats":null,"previous_names":["jg-rp/json-p3"],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/jg-rp/json-p3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jg-rp%2Fjson-p3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jg-rp%2Fjson-p3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jg-rp%2Fjson-p3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jg-rp%2Fjson-p3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jg-rp","download_url":"https://codeload.github.com/jg-rp/json-p3/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jg-rp%2Fjson-p3/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264795383,"owners_count":23665227,"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","jsonpatch","jsonpath","jsonpointer"],"created_at":"2024-11-21T11:08:01.514Z","updated_at":"2025-07-11T11:30:46.024Z","avatar_url":"https://github.com/jg-rp.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eJSON P3\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\nJSONPath, JSON Patch and JSON Pointer for JavaScript.\n\u003cbr\u003e\nWe follow \u003ca href=\"https://datatracker.ietf.org/doc/html/rfc9535\"\u003eRFC 9535\u003c/a\u003e and test against the \u003ca href=\"https://github.com/jsonpath-standard/jsonpath-compliance-test-suite\"\u003eJSONPath Compliance Test Suite\u003c/a\u003e.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/jg-rp/json-p3/blob/main/LICENSE\"\u003e\n    \u003cimg alt=\"LICENSE\" src=\"https://img.shields.io/npm/l/json-p3?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/jg-rp/json-p3/actions\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/jg-rp/json-p3/tests.yaml?branch=main\u0026label=tests\u0026style=flat-square\" alt=\"Tests\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/json-p3\"\u003e\n    \u003cimg alt=\"NPM\" src=\"https://img.shields.io/npm/v/json-p3?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003cimg alt=\"npm type definitions\" src=\"https://img.shields.io/npm/types/json-p3?style=flat-square\"\u003e\n\u003c/p\u003e\n\n---\n\n```javascript\nimport { jsonpath } from \"json-p3\";\n\nconst data = {\n  users: [\n    { name: \"Sue\", score: 100 },\n    { name: \"John\", score: 86 },\n    { name: \"Sally\", score: 84 },\n    { name: \"Jane\", score: 55 },\n  ],\n};\n\nconst nodes = jsonpath.query(\"$.users[?@.score \u003c 100].name\", data);\nconsole.log(nodes.values()); // [ 'John', 'Sally', 'Jane' ]\n```\n\n## Links\n\n- Docs: https://jg-rp.github.io/json-p3/\n- Install: https://jg-rp.github.io/json-p3/#install\n- JSONPath playground: https://jg-rp.github.io/json-p3/playground\n- JSONPath syntax: https://jg-rp.github.io/json-p3/guides/jsonpath-syntax\n- API reference: https://jg-rp.github.io/json-p3/api\n- Change log: https://github.com/jg-rp/json-p3/blob/main/CHANGELOG.md\n- NPM: https://www.npmjs.com/package/json-p3\n- Issue tracker: https://github.com/jg-rp/json-p3/issues\n\n## Bundles\n\nJSON P3 is written in TypeScript, compiled to JavaScript using [Babel](https://babeljs.io/), and bundled using [Rollup](https://rollupjs.org/introduction/). The following, included bundles target `defaults, maintained node version`, as defined by [Browserslist](https://browsersl.ist/#q=defaults%2C+maintained+node+versions).\n\nJSON P3 has zero runtime dependencies.\n\n| Bundle                | Description                                                                |\n| --------------------- | -------------------------------------------------------------------------- |\n| `json-p3.cjs.js`      | A CommonJS formatted bundle.                                               |\n| `json-p3.esm.js`      | An ECMAScript module formatted bundle.                                     |\n| `json-p3-iife.js`     | A bundle formatted as an Immediately Invoked Function Expression.          |\n| `json-p3-iife.min.js` | A minified bundle formatted as an Immediately Invoked Function Expression. |\n\n## Compliance Environment Variables\n\nThese environment variables control the location of the compliance test suite under test and if nondeterministic object iteration is enabled for those tests.\n\n| Environment Variable          | Description                                                                                                           |\n| ----------------------------- | --------------------------------------------------------------------------------------------------------------------- |\n| `JSONP3_CTS_PATH`             | The path to `cts.json` used by `compliance.test.ts`. Defaults to `tests/path/cts/cts.json`.                           |\n| `JSONP3_CTS_NONDETERMINISTIC` | When set to `true`, enables nondeterministic iteration of JSON objects for `compliance.test.ts`. Defaults to `false`. |\n\n## Contributing\n\nPlease see [Contributing to JSON P3](https://github.com/jg-rp/json-p3/blob/main/CONTRIBUTING.md)\n\n## License\n\n`json-p3` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjg-rp%2Fjson-p3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjg-rp%2Fjson-p3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjg-rp%2Fjson-p3/lists"}