Hi Maria,
whenever Spin gives you a java.util.List
, this is a copy of a collection of elements, not a view on that element collection in the original datastructure. So modifying the list will not do anything more than that.
See the following link for how to add an element to a JSON array and other examples:
Cheers,
Thorben