Forum Discussion

Yashb81's avatar
Yashb81
New Contributor
2 years ago
Solved

Do JSON mapping in a single mapper

Hi Everyone,

This is my sample JSON data.

I want to map this data in a single mapper in order to get the result set below.

Currently I am using too many snaps to do the same. I want to reduce my number of snaps and get it done in 1 mapper.

  • Thanks for your reply. My root element was wrong. I was able to get this work by changing it.

    Thanks,
    Murugan

2 Replies

  • mnduwayo's avatar
    mnduwayo
    New Contributor II

    Hello, thank you for your response.

    I don't see how parse the xml file will help me to get the paths, attributes and values of tags. The idea is also that we want to be more generic, we don't know the schema of the xml files. It is for that we want to use an external tool such as lxml which we saw it can do that in python.