I am trying to iterate through a json response to get the elements for each array element in the response and add those to a new json object. I am making multiple calls that get a new json response, but also could return the same id from a previous call. I want to loop through all of the calls and have a list of unique id the end. I am trying to iterate through a json response