Forum Discussion

Pretpark's avatar
Pretpark
New Contributor II
10 months ago
Solved

Remove XML duplicate key from JSON list in XML formatter

Hello, As you can see from the title, i am trying to remove a duplicate key in XML which is created by the XML formatter. The JSON generator contains JSON something along the lines of this: ...
  • GanguP's avatar
    GanguP
    2 years ago

    This worked perfectly fine. I do have questions though,
    1) will this methodology work for multiple tags(arrays)?
    2) Adding the second JSON splitter makes it easier,  I did provide a small number of columns in the sample but it has lot morefields. If we have to add 100's of fields it becomes tedious.  Is there another option or an easier way to do this?

     



  • koryknick's avatar
    2 years ago

    GanguP - rather than specify the individual columns to retain, you can select the "Include scalar parents" checkbox.  As long as the element is a primitive datatype (i.e. not array or object), it will automatically let it pass through.