JSON Delete Method

Hi everyone,

I am digging myself into JSON methods. I set up a little api where I collect data. So far I was able to create form for creating, updating and deleting my js.db file. Now, I wonder how can I update the id’s inside my JSON Object when an entry is deleted?

you can check out the API here

So, how would the delete method work with updating the ID’s inside the database file?