MattG
MattG

Reputation: 6445

Sublime text 3 plugin to get JSON path

I am after a plugin or technique in sublime text 3 to get what I will call the fully qualified path of the json element that is selected in the editor window.

Somethink like: http://jsonpath.com/

I want to get a result somewhere that I can copy, I just want to use this for documentation, not programmatically. It does not need to be the https://github.com/jayway/JsonPath standard, just something that produces a readable/meaningful path to an element.

Upvotes: 15

Views: 8225

Answers (2)

akirk
akirk

Reputation: 6857

I was searching for the same and ended up creating a plugin myself: https://github.com/akirk/StatusBarJsonPath

screenrecording of StatusBarJsonPath

Upvotes: 12

voiger
voiger

Reputation: 920

For those who came here looking for ST3 implementation of jsonpath, there's an awesome Pretty JSON plugin.

enter image description here

It has jQ integration, which does the same same thing as jsonpath. jQ has different syntax, but it's much more convenient to have this functionality available inside ST3 than to switch to browser.

Upvotes: 12

Related Questions