# Array index shift while deletion

**URL:** <https://jsonforms.discourse.group/t/array-index-shift-while-deletion/2818>\
**Category:** General\
**Created:** [May 19, 2026, 8:48am UTC](https://jsonforms.discourse.group/t/array-index-shift-while-deletion/2818 "2026-05-19T08:48:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiruba04](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/kiruba04/32/1357_2.png) [@kiruba04](https://jsonforms.discourse.group/u/kiruba04)\
**Post date:** [May 19, 2026, 8:48am UTC](https://jsonforms.discourse.group/t/array-index-shift-while-deletion/2818/1 "2026-05-19T08:48:09Z")

</div>

On my application i am doing the history panel like that on edit page on there while i delete the index shift cause all the below deleted field as a deleted like that i can not even able to assign the id because i am not able to get the array’s item data is there any other option to avoid a index shift or unique id creation for array record.Note : json form on angualar

---

<div class="post-metadata">

**Author:** ![lucas-koehler](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/lucas-koehler/32/336_2.png) [@lucas-koehler](https://jsonforms.discourse.group/u/lucas-koehler)\
**Post date:** [June 3, 2026, 10:42am UTC](https://jsonforms.discourse.group/t/array-index-shift-while-deletion/2818/2 "2026-06-03T10:42:04Z")

</div>

Hi @kiruba04 ,  
No there is no way to get rid of the index shift. Removing that would also lead to other problems such as empty/null objects in the place where an element was deleted.

The default renderer does not add any unique ids to array elements. However, you could just implement a custom renderer that generates a unique id for each created array element.

Best regards,  
Lucas
