saving list data into a local storage variabile
I have a list built by a rest which is run on a timeout.
i mapped the response to my list as follow
what i would like to do is:
to store all the data i get from the response field "nChat" (mapped on the component "label_nConversazioniDestinatario" contained in the list item) and chat_id response, into a local storage variable.
in a situation like the following:
I would like to save in a local storage variable a json containing the chat_id and n-chat of every list item because i need tomap this local storage variale to a REST
for example, in the case of the previous figure, I would like to obtain a local storage variabile containing:
"chat":[{"chat_id":"51-231"; "n_chat":"(6)" }, {"chat_id":"51-227"; "n_chat":"(14)" }]
Is this possible?