dot-object icon indicating copy to clipboard operation
dot-object copied to clipboard

Support array without position?

Open crapthings opened this issue 8 years ago • 1 comments

bring this to

{
  items[0]: 'item1',
  items[1]: 'item2'
}

{
  items: ['item1', 'item2']
}

this one

{
  items[]: 'item1',
  items[]: 'item2'
}

{
  items: ['item1', 'item2']
}

crapthings avatar Mar 25 '17 01:03 crapthings

Objects in JSON/JavaScript do not have guaranteed order in their properties, thats why it's is required to define a position, otherwise order would not be guaranteed in the array.

edo386 avatar Nov 21 '18 16:11 edo386