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.

Add attribute to existing array

Highlighted

Add attribute to existing array

New Contributor

If input is something like this:

{
    "Vendor":[{"a":"..."},{"b":"..."}]
}

and attribute is something like this:

{
    "Vendor":[{"c":"..."},{"d":"..."}]
}

how can I generate this output:

{
    "Vendor":[{"a":"..."},{"b":"..."},{"c":"..."},{"d":"..."}]
}

I think joltTransformJson is best option, but I couldn't generate desired output

Don't have an account?
Coming from Hortonworks? Activate your account here