{"id":40155842,"url":"https://github.com/ashphy/jsonpath-js","last_synced_at":"2026-01-19T15:35:43.214Z","repository":{"id":145310347,"uuid":"565479604","full_name":"ashphy/jsonpath-js","owner":"ashphy","description":"An implementation of JSONPath","archived":false,"fork":false,"pushed_at":"2025-10-27T16:36:36.000Z","size":684,"stargazers_count":34,"open_issues_count":6,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-03T20:11:54.964Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://jsonpath.com/","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/ashphy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-11-13T14:46:07.000Z","updated_at":"2025-10-27T19:38:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"56fb2e8c-813e-4f79-9d8d-9ef668618b0f","html_url":"https://github.com/ashphy/jsonpath-js","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ashphy/jsonpath-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashphy%2Fjsonpath-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashphy%2Fjsonpath-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashphy%2Fjsonpath-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashphy%2Fjsonpath-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashphy","download_url":"https://codeload.github.com/ashphy/jsonpath-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashphy%2Fjsonpath-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28573020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T14:39:55.009Z","status":"ssl_error","status_checked_at":"2026-01-19T14:39:01.217Z","response_time":67,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-01-19T15:35:42.581Z","updated_at":"2026-01-19T15:35:43.210Z","avatar_url":"https://github.com/ashphy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jsonpath-js\n\n![GitHub License](https://img.shields.io/github/license/ashphy/jsonpath-js)\n[![NPM Version](https://img.shields.io/npm/v/jsonpath-js)](https://www.npmjs.com/package/jsonpath-js)\n[![Lint Checker](https://github.com/ashphy/jsonpath-js/actions/workflows/lint.yml/badge.svg)](https://github.com/ashphy/jsonpath-js/actions/workflows/lint.yml)\n\n\u003e [!WARNING]\n\u003e This library is still in its initial development stage, so please be aware that the API is subject to change.\n\nAn implementation of RFC 9535 [JSONPath](http://goessner.net/articles/JsonPath/)\n\n## Try Online\n\nYou can test JSONPath expressions online at [https://jsonpath.com/](https://jsonpath.com/).\n\n## Features\n\n- 100% Compatible with RFC 9535\n\n## Supported Runtimes\n\n- Node v20+\n- Deno v2+\n- Bun v1.2+\n\n## Install\n\n```\nnpm install jsonpath-js\n```\n\n## Usage\n\n```ts\nimport { JSONPathJS } from \"jsonpath-js\";\n\nconst query = new JSONPathJS(\"$.users[*].name\");\nconst result = query.find({\n  users: [{ name: \"John Doe\" }, { name: \"Jane Doe\" }],\n});\n\n// [ 'John Doe', 'Jane Doe' ]\nconsole.log(result);\n\nconst pathResult = query.paths({\n  users: [{ name: \"John Doe\" }, { name: \"Jane Doe\" }],\n});\n\n// [\n// \t{ value: \"John Doe\", path: \"$['users'][0]['name']\" },\n// \t{ value: \"Jane Doe\", path: \"$['users'][1]['name']\" },\n// ];\nconsole.log(pathResult);\n\nconst pathSegmentsResult = query.pathSegments({\n  users: [{ name: \"John Doe\" }, { name: \"Jane Doe\" }],\n});\n\n// NOTE: The root node $ is not included in the segments\n// [\n// \t{ value: \"John Doe\", segments: [\"users\", 0, \"name\"] },\n// \t{ value: \"Jane Doe\", segments: [\"users\", 1, \"name\"] },\n// ];\nconsole.log(pathSegmentsResult);\n```\n\n## Contributing\n\nPlease read the [contributing guide](/docs/CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashphy%2Fjsonpath-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashphy%2Fjsonpath-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashphy%2Fjsonpath-js/lists"}