Start a Project

Convert JSON into XML

Convert JSON into XML

If you want to convert the JSON data to XML as we see by iOS there is no by default feature to convert JSON into XML. I have created a method which will convert JSON into XML. The code is written in objective-c, if you want to use that code in swift you have created a class and put a function in that class. After that, you have to insert the .h file into the bridging header (#import “YourClass.h”). then call the method by using:-

Here is the code:

 

 

Exit mobile version