Here attached the code which replace all items in array
var temp_count=0;
layers_info_array.forEach(element => {
if(element!='')element=JSON.parse(element);//change this line if you want other change method, here I changed string to object
layers_info_array[temp_count]=element;
temp_count++;
});