json-lite icon indicating copy to clipboard operation
json-lite copied to clipboard

Show index for array's elements

Open Karacala opened this issue 6 years ago • 3 comments

Show index for array's elements [i]

json_screenshot

Karacala avatar Mar 22 '19 09:03 Karacala

@lauriro any news about this PR

I think is a usefull feature and a option is available to activate the new feature

zckrs avatar Mar 26 '19 12:03 zckrs

First of all, thank you @Karacala for your contribution.

I have been thinking about this feature in silence and I am not completely satisfied yet.

Indices can be useful but not for arrays with 2-3 item. Always showing them is a lot of noise. I tried to show them on hover like date info, then start thinking, that json-pointer could be more useful.

Currently I am thinking about showing json-pointer on click.

lauriro avatar Mar 26 '19 17:03 lauriro

not for arrays with 2-3 item

Agree. Show indices on hover can resolved this issue.

json-pointer on click.

Would be add in another PR ?

zckrs avatar Mar 26 '19 17:03 zckrs