Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

Jolt transform with sum

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
Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.