Support Questions

Find answers, ask questions, and share your expertise

Jolt transform with sum

avatar
New Contributor

input:

{"accounts": {
"provider_AWS": 1,
"provider_Azure": 0,
"provider_GCP": 1,
"provider_DataCenter": 0
}

}

 

expected output:

{
"AWS accounts": 1,
"Azure accounts": 0,
"GCP accounts": 1,
"DataCenter accounts": 0,

"total accounts":2

}

 

I want the sum of all the accounts to be added in "total accounts". how can I achieve this with jolt?

 

 

0 REPLIES 0