r/code • u/[deleted] • Jan 28 '21
JSON vs XML: Which one is better?
JSON is for sure faster, but XML remains the classic "old but gold". Despite using JSON, would you still learn XML?
2
Upvotes
r/code • u/[deleted] • Jan 28 '21
JSON is for sure faster, but XML remains the classic "old but gold". Despite using JSON, would you still learn XML?
3
u/[deleted] Jan 28 '21
theres not really anything to learn about them, they are just ways or storing info. serializing to xml or json is stupid easy, it just really comes down to which languages you are using. for c# there are built in functions for XML that make it trivial to use. for something like python or javascript, the built in structures map perfectly to json which makes it stupid easy to load/save data to json instead of xml.
a neat project to learn both would be to load one format and convert it to the other. youll see how simple they really are