{"id":37437272,"url":"https://github.com/nidu/vscode-copy-json-path","last_synced_at":"2026-01-16T06:41:36.779Z","repository":{"id":53035997,"uuid":"74610198","full_name":"nidu/vscode-copy-json-path","owner":"nidu","description":"VSCode extension: copy path to current json node","archived":false,"fork":false,"pushed_at":"2024-03-15T22:04:16.000Z","size":97,"stargazers_count":18,"open_issues_count":5,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-15T22:47:34.578Z","etag":null,"topics":["json-path","vscode"],"latest_commit_sha":null,"homepage":"","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/nidu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-23T20:06:57.000Z","updated_at":"2023-12-28T01:50:14.000Z","dependencies_parsed_at":"2023-01-31T07:31:13.507Z","dependency_job_id":null,"html_url":"https://github.com/nidu/vscode-copy-json-path","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nidu/vscode-copy-json-path","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidu%2Fvscode-copy-json-path","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidu%2Fvscode-copy-json-path/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidu%2Fvscode-copy-json-path/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidu%2Fvscode-copy-json-path/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nidu","download_url":"https://codeload.github.com/nidu/vscode-copy-json-path/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidu%2Fvscode-copy-json-path/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477914,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"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":["json-path","vscode"],"created_at":"2026-01-16T06:41:36.707Z","updated_at":"2026-01-16T06:41:36.771Z","avatar_url":"https://github.com/nidu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# copy-json-path\n\nCopy path to selected JSON or JS node as string.\n\nPath parts are concatenated with `.` or wrapped with `[\"\"]` for object keys and wrapped in `[]` for array indices.\n\nExample:\n\nFor state like this (cursor position is bold)\n\n{\"a\": [\"q\", {\"k\": **1**}, 1]}\n\nPath would be `a[1].k`.\n\nFor JS like this \n\n```\nvar a = {\"b\": {c: 4, daq: [5, 15]}}\nvar b = {q: [2, 1**2**]}\n```\n\nPath would be `q[1]`.\n\nNOTE: JS objects are not validated.\n\n## Using\n\nLaunch command `Copy Json Path` from command palette or context menu.\n\n## Configuration\n\n- `extension.copyJsonPath.nonQuotedKeyRegex`: regex that tests whether key in path can be used without quotes. If key matches - key is not quoted. Use it if you want to have path `a.b-c` instead of `a[\\\"b-c\\\"]` for example. If you want all keys to be escaped - use regex that doesn't match anything, e.g. single space ` ` will only match single space, which is very rare object key (you can go more complicated like `a{1000}`). Default is `^[a-zA-Z$_][a-zA-Z\\\\d$_]*$`.\n\n- `extension.copyJsonPath.putFileNameInPath`: boolean to set if the file name should be in the path. Default is `false`.\n\n- `extension.copyJsonPath.prefixSeparator`: string separator to put between the prefix and the path. Default is `:`.\n\n- `extension.copyJsonPath.pathSeparator`: string separator to put between the parts of the path. Default is `.`.\n\n## Linux dependency\n\nxclip\n\n## Change Log\n\n### 0.4.0\n\n- Add option `pathSeparator` to control path separator\n\n### 0.3.0\n\n- Add the option to put the file name in the returned path (@olivier-deschenes, #15)\n\n### 0.2.1\n\n- Add info on regex for all keys to be escaped for `nonQuotedKeyRegex` (see issue #13)\n\n### 0.2.0\n\n- Allow custom non quoted key regex (see issue #6)\n\n### 0.1.1\n\n- Use vscode clipboard API for copy (@amoshydra)\n- Update dependencies\n\n### 0.1.0\n\n- Added context menu command (@mamoruuu)\n\n### 0.0.5\n\n- Fix JSON check function\n\n### 0.0.4\n\n- Better JS support\n- Using acorn parser so valid JS is expected\n\n### 0.0.3\n\n- Less broken JS object support\n- Fix when getting path before key like `{a: {# b: 3}}`\n- Audit fix\n\n### 0.0.2\n\n- Single quoted and unquoted keys are allowed\n- Can copy path in js objects (expects valid js, no check for validity)\n- Dont validate JSON on start because we wanna call it from js\n- Path is also copied when cursor stands to the left of key (could return error before)\n\n### 0.0.1\n\nInitial release.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnidu%2Fvscode-copy-json-path","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnidu%2Fvscode-copy-json-path","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnidu%2Fvscode-copy-json-path/lists"}