4 ms·
> There are many ways to do it, you just need to pick a convention. The fact that you have to pick a convention is the crux of the issue. "Easy" is a subjecti
by librvf 11y ago
> There are many ways to do it, you just need to pick a convention.
The fact that you have to pick a convention is the crux of the issue. "Easy" is a subjective term, but the fact is there isn't a direct mapping between XML And JSON.
It means that if you're using XML and converting it into a programming data structure, you have to make a bunch of decisions about how to handle the XML. It means that if you're converting a programming data structure to XML, you have to have a bunch of specific rules for how to generate that XML.
With JSON, you only have to make those decisions if you need to use data structures that aren't supported by JSON.