ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Status Bar Json​Path

by Alex Kirk ST3

Sublime Text plugin to get the JSONPath under the cursor in a JSON

Details

Installs

  • Total 2K
  • Win 625
  • Mac 825
  • Linux 195
Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14
Windows 0 1 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 2 1 0 1 1 1 0 1 0 0 1 1 1 1 2 1 0 3 0 0 0 2 0 0 0 0 2 2
Mac 0 1 4 2 1 0 0 2 2 0 0 2 0 1 1 0 1 0 1 0 1 2 1 1 3 0 0 0 2 2 1 0 0 0 0 3 4 2 2 1 0 1 2 2 1 2
Linux 0 1 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 1 0 0 0
0246Feb 28Feb 25Feb 22Feb 19Feb 16Feb 13Feb 10Feb 7Feb 4Feb 1Jan 29Jan 26Jan 23Jan 20Jan 17Jan 14Feb 28 Linux: 0 Mac: 0 Windows: 0Feb 27 Linux: 1 Mac: 1 Windows: 1Feb 26 Linux: 0 Mac: 4 Windows: 0Feb 25 Linux: 0 Mac: 2 Windows: 0Feb 24 Linux: 1 Mac: 1 Windows: 0Feb 23 Linux: 1 Mac: 0 Windows: 0Feb 22 Linux: 0 Mac: 0 Windows: 0Feb 21 Linux: 0 Mac: 2 Windows: 0Feb 20 Linux: 0 Mac: 2 Windows: 0Feb 19 Linux: 0 Mac: 0 Windows: 1Feb 18 Linux: 0 Mac: 0 Windows: 0Feb 17 Linux: 0 Mac: 2 Windows: 1Feb 16 Linux: 0 Mac: 0 Windows: 0Feb 15 Linux: 0 Mac: 1 Windows: 0Feb 14 Linux: 0 Mac: 1 Windows: 0Feb 13 Linux: 0 Mac: 0 Windows: 0Feb 12 Linux: 0 Mac: 1 Windows: 0Feb 11 Linux: 0 Mac: 0 Windows: 1Feb 10 Linux: 1 Mac: 1 Windows: 2Feb 9 Linux: 0 Mac: 0 Windows: 1Feb 8 Linux: 0 Mac: 1 Windows: 0Feb 7 Linux: 1 Mac: 2 Windows: 1Feb 6 Linux: 0 Mac: 1 Windows: 1Feb 5 Linux: 0 Mac: 1 Windows: 1Feb 4 Linux: 1 Mac: 3 Windows: 0Feb 3 Linux: 0 Mac: 0 Windows: 1Feb 2 Linux: 0 Mac: 0 Windows: 0Feb 1 Linux: 0 Mac: 0 Windows: 0Jan 31 Linux: 0 Mac: 2 Windows: 1Jan 30 Linux: 0 Mac: 2 Windows: 1Jan 29 Linux: 0 Mac: 1 Windows: 1Jan 28 Linux: 0 Mac: 0 Windows: 1Jan 27 Linux: 0 Mac: 0 Windows: 2Jan 26 Linux: 0 Mac: 0 Windows: 1Jan 25 Linux: 0 Mac: 0 Windows: 0Jan 24 Linux: 0 Mac: 3 Windows: 3Jan 23 Linux: 1 Mac: 4 Windows: 0Jan 22 Linux: 0 Mac: 2 Windows: 0Jan 21 Linux: 1 Mac: 2 Windows: 0Jan 20 Linux: 0 Mac: 1 Windows: 2Jan 19 Linux: 0 Mac: 0 Windows: 0Jan 18 Linux: 0 Mac: 1 Windows: 0Jan 17 Linux: 1 Mac: 2 Windows: 0Jan 16 Linux: 0 Mac: 2 Windows: 0Jan 15 Linux: 0 Mac: 1 Windows: 2Jan 14 Linux: 0 Mac: 2 Windows: 2Feb 28 Linux: 0 Mac: 0 Windows: 0Feb 27 Linux: 1 Mac: 1 Windows: 1Feb 26 Linux: 0 Mac: 4 Windows: 0Feb 25 Linux: 0 Mac: 2 Windows: 0Feb 24 Linux: 1 Mac: 1 Windows: 0Feb 23 Linux: 1 Mac: 0 Windows: 0Feb 22 Linux: 0 Mac: 0 Windows: 0Feb 21 Linux: 0 Mac: 2 Windows: 0Feb 20 Linux: 0 Mac: 2 Windows: 0Feb 19 Linux: 0 Mac: 0 Windows: 1Feb 18 Linux: 0 Mac: 0 Windows: 0Feb 17 Linux: 0 Mac: 2 Windows: 1Feb 16 Linux: 0 Mac: 0 Windows: 0Feb 15 Linux: 0 Mac: 1 Windows: 0Feb 14 Linux: 0 Mac: 1 Windows: 0Feb 13 Linux: 0 Mac: 0 Windows: 0Feb 12 Linux: 0 Mac: 1 Windows: 0Feb 11 Linux: 0 Mac: 0 Windows: 1Feb 10 Linux: 1 Mac: 1 Windows: 2Feb 9 Linux: 0 Mac: 0 Windows: 1Feb 8 Linux: 0 Mac: 1 Windows: 0Feb 7 Linux: 1 Mac: 2 Windows: 1Feb 6 Linux: 0 Mac: 1 Windows: 1Feb 5 Linux: 0 Mac: 1 Windows: 1Feb 4 Linux: 1 Mac: 3 Windows: 0Feb 3 Linux: 0 Mac: 0 Windows: 1Feb 2 Linux: 0 Mac: 0 Windows: 0Feb 1 Linux: 0 Mac: 0 Windows: 0Jan 31 Linux: 0 Mac: 2 Windows: 1Jan 30 Linux: 0 Mac: 2 Windows: 1Jan 29 Linux: 0 Mac: 1 Windows: 1Jan 28 Linux: 0 Mac: 0 Windows: 1Jan 27 Linux: 0 Mac: 0 Windows: 2Jan 26 Linux: 0 Mac: 0 Windows: 1Jan 25 Linux: 0 Mac: 0 Windows: 0Jan 24 Linux: 0 Mac: 3 Windows: 3Jan 23 Linux: 1 Mac: 4 Windows: 0Jan 22 Linux: 0 Mac: 2 Windows: 0Jan 21 Linux: 1 Mac: 2 Windows: 0Jan 20 Linux: 0 Mac: 1 Windows: 2Jan 19 Linux: 0 Mac: 0 Windows: 0Jan 18 Linux: 0 Mac: 1 Windows: 0Jan 17 Linux: 1 Mac: 2 Windows: 0Jan 16 Linux: 0 Mac: 2 Windows: 0Jan 15 Linux: 0 Mac: 1 Windows: 2Jan 14 Linux: 0 Mac: 2 Windows: 2Feb 28 Linux: 0 Mac: 0 Windows: 0Feb 27 Linux: 1 Mac: 1 Windows: 1Feb 26 Linux: 0 Mac: 4 Windows: 0Feb 25 Linux: 0 Mac: 2 Windows: 0Feb 24 Linux: 1 Mac: 1 Windows: 0Feb 23 Linux: 1 Mac: 0 Windows: 0Feb 22 Linux: 0 Mac: 0 Windows: 0Feb 21 Linux: 0 Mac: 2 Windows: 0Feb 20 Linux: 0 Mac: 2 Windows: 0Feb 19 Linux: 0 Mac: 0 Windows: 1Feb 18 Linux: 0 Mac: 0 Windows: 0Feb 17 Linux: 0 Mac: 2 Windows: 1Feb 16 Linux: 0 Mac: 0 Windows: 0Feb 15 Linux: 0 Mac: 1 Windows: 0Feb 14 Linux: 0 Mac: 1 Windows: 0Feb 13 Linux: 0 Mac: 0 Windows: 0Feb 12 Linux: 0 Mac: 1 Windows: 0Feb 11 Linux: 0 Mac: 0 Windows: 1Feb 10 Linux: 1 Mac: 1 Windows: 2Feb 9 Linux: 0 Mac: 0 Windows: 1Feb 8 Linux: 0 Mac: 1 Windows: 0Feb 7 Linux: 1 Mac: 2 Windows: 1Feb 6 Linux: 0 Mac: 1 Windows: 1Feb 5 Linux: 0 Mac: 1 Windows: 1Feb 4 Linux: 1 Mac: 3 Windows: 0Feb 3 Linux: 0 Mac: 0 Windows: 1Feb 2 Linux: 0 Mac: 0 Windows: 0Feb 1 Linux: 0 Mac: 0 Windows: 0Jan 31 Linux: 0 Mac: 2 Windows: 1Jan 30 Linux: 0 Mac: 2 Windows: 1Jan 29 Linux: 0 Mac: 1 Windows: 1Jan 28 Linux: 0 Mac: 0 Windows: 1Jan 27 Linux: 0 Mac: 0 Windows: 2Jan 26 Linux: 0 Mac: 0 Windows: 1Jan 25 Linux: 0 Mac: 0 Windows: 0Jan 24 Linux: 0 Mac: 3 Windows: 3Jan 23 Linux: 1 Mac: 4 Windows: 0Jan 22 Linux: 0 Mac: 2 Windows: 0Jan 21 Linux: 1 Mac: 2 Windows: 0Jan 20 Linux: 0 Mac: 1 Windows: 2Jan 19 Linux: 0 Mac: 0 Windows: 0Jan 18 Linux: 0 Mac: 1 Windows: 0Jan 17 Linux: 1 Mac: 2 Windows: 0Jan 16 Linux: 0 Mac: 2 Windows: 0Jan 15 Linux: 0 Mac: 1 Windows: 2Jan 14 Linux: 0 Mac: 2 Windows: 2

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

screen recording

Installation

On PackageControl it's called Status Bar JsonPath: https://packagecontrol.io/packages/Status%20Bar%20JsonPath

  1. Run Package Control: Advanced Install Package
  2. Enter Status Bar JsonPath

You can also install the package manually like this:

  1. Click the Preferences >Browse Packages… menu, this should open a folder Packages.
  2. 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).
  3. Restart Sublime Text.