bazaarvoice / jolt

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

Transform values in nested child arrays #774

Open anshumandeb opened 5 years ago

anshumandeb commented 5 years ago

Hi - I looked at #624 and have a similar, but slightly different requirement. Here is muy input JSON: { "Level-1": { "Level-2": [ { "someA": "A1", "someB": "B1", "someC": "C1" }, { "someA": "A2", "someB": "B2", "someC": "C2" } ] } } I want to transform the values for some of the leaf level attributes. Here is the expected output: { "Level-1": { "Level-2": [ { "someA": "A1", "someB": "X1", "someC": "Y1" }, { "someA": "A2", "someB": "X2", "someC": "Y2" } ] } } Can you please help me with the corresponding Jolt spec?

Thanks

anshumandeb commented 5 years ago

Hello, can someone please help me resolve this issue of substituting/transforming values in nested child arrays?