cancel
Showing results for 
Search instead for 
Did you mean: 

Using JSON Splitter to reorganise JSON

NAl
Contributor

Is it possible to move ValueX so it sits in the corresponding original document?
I’m currently using a JSON splitter to flatten a file processed by a Group by snap upstream.

{
    "original": {
    "Individual": "Wolverine"
}
     "ValueX":
      "9999"
}

Here is the current JSON splitter setup:
![Screen Shot 2021-08-27 at 11.27.57 AM|650x342](upload://p7caZIF2OIIPeT91yz3EfPqBScH.png)
1 ACCEPTED SOLUTION

j_angelevski
Contributor III

Hi @NAl ,

You can use Structure snap to move one field to another.
image
Result
image

View solution in original post

2 REPLIES 2

j_angelevski
Contributor III

Hi @NAl ,

You can use Structure snap to move one field to another.
image
Result
image

Supratim
Contributor III

@NAl you can use the below syntax $.extend($.get(“original”)).filter((value, key) => key != “original”) to keep all your attribute under root. It will help you to avoid using $original. in your downstream snaps.