Trying to get the id of the last element in my json file through an api

35 Views Asked by At

I'm trying to get the id of the last element in my json file through an api to be able to add an element without a random id , i want it to be like 1,2,3,4 etc... but i can't figure out how (i wana do that bc i can't use an id with letrers ). Thank you in advance.

0

There are 0 best solutions below