phelipetls / jsonpath.nvim

A Neovim plugin to help you access JSON values, powered by treesitter
MIT License
135 stars 7 forks source link

add support feature: disable separator for root note #10

Closed olejech closed 9 months ago

olejech commented 9 months ago

I would like to copy json path without separator for root node. Like this:

{"one": {"two": "ok"}}

It's will be equal: one.two

phelipetls commented 9 months ago

I believe this would work: require("jsonpath").get():sub(2, -1)

olejech commented 9 months ago

Awesome! Thanks!