Search code examples
jsonvisual-studio-codesublimetext3jsonpathsublime-text-plugin

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.


Solution

  • 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.