https://github.com/malopolese/copy-json-path
This extention allow you to copy json path
https://github.com/malopolese/copy-json-path
extension visual-studio-code vscode vscode-extension
Last synced: 3 months ago
JSON representation
This extention allow you to copy json path
- Host: GitHub
- URL: https://github.com/malopolese/copy-json-path
- Owner: MaloPolese
- License: mit
- Created: 2021-07-27T19:43:30.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-21T19:46:04.000Z (7 months ago)
- Last Synced: 2025-03-28T02:46:52.203Z (4 months ago)
- Topics: extension, visual-studio-code, vscode, vscode-extension
- Language: TypeScript
- Homepage:
- Size: 382 KB
- Stars: 36
- Watchers: 2
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
Copy Json Path
[](https://github.com/MaloPolese/copy-json-path/tree/main)
[](https://github.com/MaloPolese/copy-json-path/tree/main)
[](https://github.com/MaloPolese/copy-json-path/tree/main)
[](https://github.com/MaloPolese/copy-json-path/issues)
[](https://github.com/MaloPolese/copy-json-path/tree/main)[](https://marketplace.visualstudio.com/items?itemName=Malo.copy-json-path)
[](https://marketplace.visualstudio.com/items?itemName=Malo.copy-json-path&ssr=false#version-history)
[](https://marketplace.visualstudio.com/items?itemName=Malo.copy-json-path&ssr=false#review-details)This extension allows you to copy and paste a jsonpath
# Install
1. Install extension from [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=Malo.copy-json-path) or [Open VSX Registry](https://open-vsx.org/extension/Malo/copy-json-path)
2. Enjoy# Usage
1. Open a json file
2. Click on any key in the file
3. Ctrl+Maj+p write `Copy json path` and Enter# Showcase

# Configuration
## Bracket notation
If you want to use bracket notation instead of dot notation, you can set the `copy-json-path.bracketNotation` setting to `true`.

## File name
If you want to add the file name at the beginning of the path, you can set the `copy-json-path.includeFileName` setting to `true`.

## Quotes
When you use the bracket notation the key is surrounded by quotes. With the `copy-json-path.quote` setting you can choose the type of quotes to use `Single` or `Double`.
The default value is `Double`.
## Output
If you want to change the output format, you can change the `copy-json-path.output` setting.

The default output is only the json path represented by the %PATH% variable.
For example, you can change it as follows:
and the result in your clipboard will be :
``