I have an object called featureSet.
Inside of featureSet there are many items, including an array called features, which contains other array, attributes.
I can add a new array inside of featureSet.features.attributes by doing the following within a for loop
featureSet.features[i].attributes.NEWITEM= [NEWITEM_ARRAY];
And when I use console.log(featureSet), I can see that the items are there.
When I use var test = JSON.stringify(featureSet), however, only the original featureSet is returned.
How can I circumvent this so that when I call JSON.stringify, the new items are there as well?
Thank you in advance.