Need to get the all ids from json objects where column name is dynamic from API response and form new json object and feed to next API request.
for example, below is