Forum Discussion

pjanapati's avatar
pjanapati
New Contributor II
3 years ago

How to find the incoming data format (like json or xml) dynamically

Hi everyone,

I am passing the data from postman and I need to route the data based on the incoming data whether it is json or xml. Based on this, I have to do the other logics. So my issue was, how to find the incoming data format? For this I have tried some ways but those are not worked for me. Can you please anyone help me with this.
Thanks in advance.