I have the json messe format:
{
"indice1":['nome1', 'nome2'],
"indice2":['nome1', 'nome2', 'nome3']
}
What I want is when the user clicks the delete button it deletes the last item from json. In the case of jSON above it would exclude nome3
and clicking again would exclude nome2
and then delete nome1
together with index indice2
(since it would delete the last jSON item and leave it empty so it could delete tb or index). And so on, always excluding the last item.