What should I use json or xml ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What should I use json or xml ?

I want to create a web parser that parses the android documentation and create a structure of any particular class's methods, member and their description. What should I use. JSON or XML to store the class member information This is how my structure may look like in XML https://code.sololearn.com/WCP4iXH53hS8/?ref=app

28th Aug 2020, 7:56 AM
Terminal_Phantom
Terminal_Phantom - avatar
1 Answer
+ 1
Simple Answer ..... It depends. However let me list some pros and cons :- JSON has a more compact style than XML, and it is often more readable. The XML software parsing process can take a long time The JSON structure is straightforward and readable JSON uses a map data structure rather than XML's tree
28th Aug 2020, 8:39 AM
Rushabh Bhalgat
Rushabh Bhalgat - avatar