This is some data being returned by an API. I need to loop over the arrays that are contained within the nested structure. For example in the image below the savedMajorIds:
isArray(apiprofile.result.savedMajorIds)
returns Yes, so I'm pretty sure it's looking at the right thing. However, when I try to loop over it to get the values it breaks. Code is:
for (i=1, i < arrayLen(apiprofile.result.savedMajorIds),i=i+1) {
writeOutput(apiprofile.result.savedMajorIds[i]);
}
Error log doesn't like the arrayLen() portion but so far I've been unable to get that to work.
