Forum Moderators: open
0 {"name":"example.jpg", "uuid":"blah-blah-blah", "thumbnailUrl":"/fineuploader/fles/blah-blah-blah/example.jpg"},
1 {"name":"example_2.jpg", "uuid":"blah2-blah2-blah2", "thumbnailUrl":"/fineuploader/fles/blah2-blah2-blah2/example_2.jpg"},
2 {"name":"example_3.jpg", "uuid":"blah3-blah3-blah3", "thumbnailUrl":"/fineuploader/fles/blah3-blah3-blah3/example_3.jpg"} 0 {"name":"example.jpg", "uuid":"blah-blah-blah", "thumbnailUrl":"/fineuploader/fles/blah-blah-blah/example.jpg"},
2 {"name":"example_3.jpg", "uuid":"blah3-blah3-blah3", "thumbnailUrl":"/fineuploader/fles/blah3-blah3-blah3/example_3.jpg"} delete array[1]; jsonArray.splice(index, 1, undefined)
I'm not aware of how that might create a memory leak, considering your array example contains JSON objects and not anything with a DOM reference.
Can you link to a reference stating the overflow issue you mentioned?
Instead of naively selecting the index to delete, ie: delete index 2, because it is the second entry, use a unique identifier such as 'uuid' then use find.index to find the index of the record.