Why is Everyone Choosing JSON Over XML for jQuery?

2020-01-27 09:38发布

I thought XML is highly portable and can be used as a mini database. I have seen XML used everywhere. I even see large companies switching over to JSON. Even Microsoft has integrated support for JSON. What is all the hype over JSON?

标签: jquery xml json
19条回答
2楼-- · 2020-01-27 10:24

JSON has no impedance-mismatch with JavaScript programming. JSON can contain integers, strings, lists, arrays. XML is just elements and nodes that need to be parsed into integers and so on before it can be consumed.

查看更多
登录 后发表回答