I want to extract "email" from JSON using ADF/Synapse.
Below is the JSON that I want to flatten and extract all "email" which is in an object in a multidimensional array:
{
"input": {
"title": [
"ALIAS_VALUES",
"ALIAS_COUNT"
],
"values": [
[
{
"code": "aaaa",
"email": "[email protected]"
},
55
],
[
{
"code": "bbbb",
"email": "[email protected]"
},
10
],
[
{
"code": "cccc",
"email": "[email protected]"
},
18
]
],
"IsNew": false
},
"errors": []
}
I'm trying to return a .csv output that only includes "email". I've tried using consecutive copy activities as well as a data flow using the flatten activity. I'm now trying to parse the JSON using a lookup activity.