bazaarvoice / jolt

JSON to JSON transformation library written in Java.
Apache License 2.0
1.56k stars 329 forks source link

Need help with nested json arrays in the output json #821

Open monisbhattiphilips opened 5 years ago

monisbhattiphilips commented 5 years ago

Hi,

Please help me with this transformation, where I have multiple json arrays which are to be transformed into something like - [ { record: { data: { .... }, children: [ { record: { data: { .... } }, { record: { data: { .... } } ] } ]

Here are the files I am trying with - input.txt jolt_spec.txt expected_transformed.txt current_tranformed.txt

I am able to achieve this if the record.children has 1 type of element. Would really appreciate if someone can help ASAP. @MagdaToczek, could you please have a look?

Regards, Monis

monisbhattiphilips commented 5 years ago

Hi, If this is not possible with Jolt please do let me know, so that I may consider an alternate solution.

Regards, Monis