Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Need a spec for jolt json transmsformstion

Need a spec for jolt json transmsformstion

New Contributor

Input

{"portfolio":{"stock":"infosys","quantity":"100","buy":"1011","profit":"10000","nameDetails":{"firstName":"Yaarab","LastName":"Basha","detailList":[{"amap":"asdfasd"}]},"list":[{"List1":"list1"},{"List1":"list2"}]}}

Need a spec for below output output

{"primary":{"stock":"infosys","quantity":"100","buy":"1011","profit":"10000","detailList":[{"amap":"asdfasd"}],"nameDetails":{"firstName":"Yaarab"}},"main":{"LastName":"Basha","stock":"infosys","list1concat":"list1 list2"},"detailsListMap":[{"amap":"asdfasd"}]}

anyone one provide us the better spec for converting json2json with jolt spec