Structure field items within front-end form

Check out this post with the addToStructure() method: Add to Structure in specific language

You will have to adapt the code an pass the yaml encode array to your data variable instead of updating inside the function, but you should get the idea how to fetch the original content of the field and add the new entries.

Or maybe I got this wrong and you want to create a sort of structure field in the frontend?