Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Jolt transform with sum
Labels:
- Labels:
-
Apache NiFi
New Contributor
Created 10-28-2022 04:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
