Convert the XML to JSON by preserving the data types without model in c#
I am trying to convert an XML to JSON without changing the datatypes but it is always returning the string value. I have tried different ways to convert with proper data types. Below is my source XML and expected JSON…