CarlosNZ/json-edit-react

Option for 1-indexed arrays

Closed this issue · 4 comments

Rather than the standard 0-based numbering

@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?

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.

Hello everyone, I want to propose a solution for issue [#62 Option for 1-indexed arrays] (or for a new feature).

My main idea is based on using an array of objects to manage it

This is now implemented by #224 and is available in the v1.29.0 release