This extension allows you to copy and paste a jsonpath
- Install extension from Visual Studio Marketplace or Open VSX Registry
- Enjoy
- Open a json file
- Click on any key in the file
- Ctrl+Maj+p write
Copy json pathand Enter
If you want to use bracket notation instead of dot notation, you can set the copy-json-path.bracketNotation setting to true.
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.
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.
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 :
<TMPL_VAR NAME="path.to.key">




