json-edit-react icon indicating copy to clipboard operation
json-edit-react copied to clipboard

Option for 1-indexed arrays

Open CarlosNZ opened this issue 1 year ago • 2 comments

Rather than the standard 0-based numbering

CarlosNZ avatar May 19 '24 08:05 CarlosNZ

@CarlosNZ I want to help out a bit with this issue to get me more familiar with the repo. Can you give me an idea of what you're imagining in terms of implementation?

PrimoUomo89 avatar Feb 18 '25 17:02 PrimoUomo89

I just meant that instead of displaying:

Array: [
  0: "My Value"
  1: "Another Value"
  2: "This"
]

It would show:

Array: [
  1: "My Value"
  2: "Another Value"
  3: "This"
]

But only if the prop was set.

I think it should be quite simple to implement, so feel free to have a crack.

CarlosNZ avatar Feb 19 '25 08:02 CarlosNZ