The question seems to be simple, but something is googling and having tried different methods and because of poor knowledge js is completely confused. There is a notation:
{action:"someAction",data:info}
where info needs to be filled in the loop with key: value elements. How to express it in notation? How to attach elements like in php?
array["key"]=value
ps Connected JSON2.js
UPD I will clarify the question of how to dynamically add a property to a property whose name is contained in a variable that is constantly changing in a loop?