Member since
04-03-2024
3
Posts
1
Kudos Received
0
Solutions
04-05-2024
12:26 PM
1 Kudo
Hi @Nicanor , Let's take a below example: Json Input: [
{
"cloud_base": [
"3500",
"15000"
],
"cloudType": [
"Stratocumulus",
"Altocumulus"
]
}
] Jolt Spec: [
{
"operation": "shift",
"spec": {
"*": {
"cloud_base": {
"*": {
"*": {
"@1": "cloud_base_&"
}
}
},
"cloudType": {
"*": {
"*": {
"@1": "cloudType_&"
}
}
}
}
}
}
] Output: {
"cloud_base_3500" : "3500",
"cloud_base_15000" : "15000",
"cloudType_Stratocumulus" : "Stratocumulus",
"cloudType_Altocumulus" : "Altocumulus"
} "Accept as Solution" if its work for you.
... View more