Input:
{
"creatives": [
{
"link_promo": [
"https://facebook.com/123",
"https://facebook.com/456"
]
},
{
"link_promo": [
"https://facebook.com/789",
"https://facebook.com/101112"
]
},
{
"link_promo": [
"https://facebook.com/121314",
"https://facebook.com/141516"
]
}
]
}
Spec:
[
{
"operation": "shift",
"spec": {
"creatives": {
"*": {
"link_promo": "promo_links[]"
}
}
}
}
]
Output:
{
"promo_links": [
[
"https://facebook.com/123",
"https://facebook.com/456"
],
[
"https://facebook.com/789",
"https://facebook.com/101112"
],
[
"https://facebook.com/121314",
"https://facebook.com/141516"
]
]
}
Desired Output:
{
"promo_links": [
"https://facebook.com/123",
"https://facebook.com/456",
"https://facebook.com/789",
"https://facebook.com/101112",
"https://facebook.com/121314",
"https://facebook.com/141516"
]
}
Hi guys, i need to flatten nested list to an array as description above. Hi guys, i need to flatten nested list to an array as description above. Any ideas how to modify my jolt spec to achieve that output?
