I need to extract the email address from value where "name":"username" from this JSON using JOLT:
I thought it would be
customer:{
"*":{
"name"{
"username":"email.@(2,value)
}
}
}
Input
{
"customer": [
{
"name": "title",
"value": "Mr"
},
{
"name": "address",
"value": "park road"
},
{
"name": "username",
"value": "contactus@email.com"
}
]
}
Expected Output
{
"email":"contactus@email.com
}
