How to extract all the values of a specific key in JSON request using JavaScript Policy

I want to get all the Id value using Javascript. Hope you can help me with this. 

Sample JSON Payload for request: 

Verb: POST

Content Type: application/json

Sample Payload:

{
  "Input":
  [{
    "Id"123,
    "emailAddress""xyz@google.com",
   },
   { 
    "Id"555",
    "emailAddress""xyz@google.com",
   },
   {
    "Id": 767,
    "emailAddress""xyz@google.com",
   }]
}
 
 
0 2 202
2 REPLIES 2

Which version of Apigee are you using?

And also, after you Extract these values, what do you plan to do with them?

Hi dchiesa1, just a requirement to create a mock response on a proxy. I manage to extract the values by using nested for loops. Thanks.