Skip to main content
Question

How can we Unflatten the Flattened Json in Streamsets pipeline?

  • October 21, 2022
  • 2 replies
  • 71 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

alex.sanchez
StreamSets Employee
Forum|alt.badge.img
  • StreamSets Employee
  • 73 replies
  • 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
  • Headliner
  • 258 replies
  • October 21, 2022

@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: