I have a Parse JSON action with following schema:
{
"type": "object",
"properties": {
"employees": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"email": {
"type": "string"
}
},
"required": [
"id",
"email"
]
}
}
}
}
And the sample input JSON string is:
{
"employees": [
{
"id": "1111",
"email": "email1@gmail.com"
},
{
"id": "2222",
"email": "email2@gmail.com"
}
]
}
To get employee list, I use:
body('Parse_JSON')?['employees']
How get the email of emloyee with id
= 2222
?
Note: I can change JSON schema if I have to.