So I have a JSON File with multiple arrays "ID" that I want to extract.
[
  {
    "ID": 318,
    "Type": 0,
    "Value": 3,
     },
  {
    "ID": 580,
    "Type": 5,
    "Value": 8,
     },
  {
    "ID": 23,
    "Type": 3,
    "Value": 40,
     },
  {
    "ID": 13,
    "Type": 2,
    "Value": 58,
     },
  {
    "ID": 60,
    "Type": 54,
    "Value": 22,
     },
function getID(address){
  var url = 'https://data.com/api/v1/users/';
  var res = UrlFetchApp.fetch(url);
  var content = res.getContentText();
  var json = JSON.parse(content);
  var result = json[0]['ID']+", "+json[1]['ID']+", "+json[3]['ID'];
  return result;
}
I have this code that parses the arrays one by one but I don't know how to get all the "ID" arrays at once. Anyone that can help?
 
     
    