Question

How can we Unflatten the Flattened Json in Streamsets pipeline?

  • 21 October 2022
  • 2 replies
  • 41 views

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.


2 replies

Userlevel 2
Badge

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

Userlevel 4
Badge

@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