Follow the example of my json in storage object:
(sorry for the language)
How can I put a name for the indexes "0:" and "1:" ? Example: Replace "0" for "session_0"
Below I show in a more abstract example how I create this array in code
var objectFinal = {"student":[],"sessions":[]};
var mySession = {"answers":[]}
objectFinal.sessions.push(mySession);
var obj = JSON.stringify(objectFinal);
localStorage.setItem("",obj);
I hope it has been clear, sorry for my bad english or any desorganization.