Convert XML to Json format - jScript
Hey guys, I curretly have an XML file that I use to map some test data so I could create another XML file and send it somwhere. Current XML format is: <Mappings> <Test id="Test_1000_test"> <TestIdMapping>Test_1001_test1</TestIdMapping> <TestIdMapping>Test_1002_test2</TestIdMapping> </Test> <Test id="Test_2000_test"> <TestIdMapping>Test_2001_test1</TestIdMapping> <TestIdMapping>Test_2002_test2</TestIdMapping> <TestIdMapping>Test_2003_test3</TestIdMapping> </Test> <Mappings> Basically I am mapping 1001, 1002 to 1000....... I would like to switch this file to JSON and have it in TestComplete instead of reading it from the outside (external XML). What's is the best way to it ? I have an idea in head but I would like your opinion. Please note that file could have up to few hundreds tests.1.9KViews0likes11Comments