Given the attached json file write an automation that outputs (Write Line) the name, age and mobile for the persons that are over 30 years and do have a mobile number.
inputJson.json (1.3 KB)
[
{
"firstName": "John",
"lastName": "Smith",
"age": 31,
"address":
{
"streetAddress": "21 2nd Street",
"city": "New York",
"state": "NY",
"postalCode": "10021"
},
"phoneNumber":
[
{
"type": "home",
"number": "212 555-1234"
}
]
},
{
"firstName": "John",
"lastName": "Doe",
"age": 27,
"address":
{
"streetAddress": "21 2nd Street",
"city": "New Delhi",
"state": "NY",
"postalCode": "10021"
},
"phoneNumber":
[
{
"type": "home",
"number": "212 555-1234"
},
{
"type": "mobile",
"number": "212 555-1234"
}
]
},
{
"firstName": "Maria",
"lastName": "Smith",
"age": 34,
"address":
{
"streetAddress": "21 2nd Street",
"city": "Michigan",
"state": "MI",
"postalCode": "99971"
},
"phoneNumber":
[
{
"type": "home",
"number": "212 555-1234"
},
{
"type": "mobile",
"number": "212 555-1234"
}
]
}
]