dot-object
dot-object copied to clipboard
Support array without position?
bring this to
{
items[0]: 'item1',
items[1]: 'item2'
}
{
items: ['item1', 'item2']
}
this one
{
items[]: 'item1',
items[]: 'item2'
}
{
items: ['item1', 'item2']
}
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.