Hi Team,
I'm new to the platform and am having some issues manipulating the data how I want it to look.
I'm getting my initial data from a SQL database (skusByLocation), and then am doing a lookup from a CSV file (FTP) (eandata).
I want to merge skusByLocation and eandata together utilising the sku as the key. Whats the best way to do this?
Input:
{
"data": [
{
"skusByLocation": [
{
"location": "753",
"skus": [
{
"sku": "1234",
"quantity": 3
},
{
"sku": "5678",
"quantity": 3
}
]
}
],
"eandata": [
{
"sku": "1234",
"ean": "efgh"
},
{
"sku": "5678",
"ean": "abcd"
}
]
}
]
}
Desired Output:
{
"data": [
{
"skusByLocation": [
{
"location": "753",
"skus": [
{
"sku": "1234",
"quantity": 3,
"ean": "efgh"
},
{
"sku": "5678",
"quantity": 3,
"ean": "abcd"
}
]
}
]
}
Thanks.