Status Bar JsonPath
Sublime Text plugin to get the JSONPath under the cursor in a JSON
Details
Installs
- Total 2K
- Win 581
- Mac 754
- Linux 181
Nov 23 | Nov 22 | Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 3 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 2 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 1 | 1 | 0 | 0 | 2 | 1 | 0 |
Mac | 0 | 5 | 3 | 1 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 2 | 0 | 1 | 0 | 0 | 1 | 2 | 0 | 0 | 0 | 0 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
StatusBarJsonPath
Sublime Text plugin to get the JSONPath (a notation to access the item) under the cursor in a JSON.
The plugin also includes a command JSONPath: Copy to copy the displayed path to the clipboard.
Example
Given the following JSON object:
{
"name": "Hello World",
"tags": [
"example"
],
"metadata": {
"author": "Alex Kirk"
}
}
In this scenario the plugin will display/copy the following JSONPaths (all directly queryable in jq
for matching results):
- Cursor inside “name”:
.name
- Cursor inside “Hello World”:
.name
- Cursor inside “tags”:
.tags
- Cursor inside “example”:
.tags[0]
- Cursor inside “metadata”:
.metadata
- Cursor inside “author”:
.metadata.author
Demo
Installation
On PackageControl it's called Status Bar JsonPath
: https://packagecontrol.io/packages/Status%20Bar%20JsonPath
- Run
Package Control: Advanced Install Package
- Enter
Status Bar JsonPath
You can also install the package manually like this:
- Click the Preferences >Browse Packages… menu, this should open a folder
Packages
. - Download https://github.com/akirk/StatusBarJsonPath/archive/refs/heads/main.zip and extract it into that directory (it should then have a subfolder
StatusBarJsonPath-main
). - Restart Sublime Text.