Skip to main content
Question

How can we Unflatten the Flattened Json in Streamsets pipeline?


Lets say we have Nested Json and we flattened it using Field Flattener processor in Pipeline. Can we Unflatten it again to get original nested json.

alex.sanchez
StreamSets Employee
Forum|alt.badge.img
  • StreamSets Employee
  • October 21, 2022

Hi @Nitin Gandhi,

I don’t know if it is what you are looking for, but take a look at the Data Parser Processor

 

Thanks


saleempothiwala
Headliner
Forum|alt.badge.img

@Nitin Gandhi 

You will have to re-create the map and then use Data Generator or JSON Generator to create the nested JSON.

 

The output og Expression Evaluator will look like this:

The output of Data Generator will look like this:

 


Reply