Install the Get Json Path From Cursor plugin in visual studio 2022
In visual studio 2022 :
- Open a json file
- Position the cursor where you want to know the path (On a JSON key or in a collection)
- Activate the plugin either
3.1 by clicking on menu Tools --> Get full JSON Path to Cursor
3.2 by pressing the hotkey Ctrl+Shift+J - The JSON path is shown in the status bar and copied in your clipboard