Copy path of a selected node
qkxie opened this issue · 4 comments
qkxie commented
Hope there is a feature to copy the path of the selected in the format of a target language.
for example:
{"a": {"b": {"c": 1}}}
In Python, the copied value should be: root['a']['b']['c']
In JavaScript, the copied value should be: root.a.b.c
changdy commented
It is a good idea . and very useful
Maximization commented
Yes! This is exactly what I'm looking for. My use case is to paste a deeply nested object in JSON Hero, navigate to the value I want through the UI, and would love to copy with a single click the JavaScript I need to use to get that value programatically.
qkxie commented
I posted this issue 3 months ago, but the author hasn't even replied to me, let alone started developing this feature.