加入收藏 | 设为首页 | 会员中心 | 我要投稿 PHP编程网 - 湛江站长网 (https://www.0759zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 建站 > 正文

XML与JSON优劣对比

发布时间:2019-02-14 21:34:08 所属栏目:建站 来源:wwhio
导读:副标题#e# 简介 XML 和 JSON 是现今互联网中最常用的两种数据交换格式。XML 格式由 W3C 于 1996 年提出。JSON 格式由 Douglas Crockford 于 2002 年提出。虽然这两种格式的设计目标并不相同,但它们常常用于同一个任务,也就是数据交换中。XML 和 JSON 的文

Node.js 是一款服务器端的 JavaScript 框架,随着她的诞生与快速成长,与 MongoDB 等 NoSQL 数据库一起,让全栈使用 JavaScript 开发成为可能。这些都预示着 JSON 光明的未来,这些软件的出现让 JSON 运用在全栈开发的每一个环节成为可能,这将使应用更加轻量,响应更快。这也是任何应用的追求之一,所以,全栈使用 JavaScript 的趋势在不久的未来都不会消退。17

此外,另一个应用开发的趋势是从 SOAP 转向 REST。18 19 20 XML 和 JSON 都可以用于 REST,可 SOAP 只能使用 XML。

从这些趋势中可以推断,JSON 的发展将统一 Web 的信息交换格式,XML 的使用率将继续降低。虽然不应该把 JSON 吹过头了,因为 XML 在 Web 中的使用依旧很广,而且它还是 SOAP 的唯一选择,可考虑到 SOAP 到 REST 的迁移,NoSQL 数据库和全栈 JavaScript 的兴起,JSON 卓越的性能,我相信 JSON 很快就会在 Web 开发中超过 XML。至于其他领域,XML 比 JSON 更好的情况并不多。

角注

1. Introducing JSON[7]

2. XML Tutorial[8]

3. JSON vs. XML: Some hard numbers about verbosity[9]

4. Comparison of JSON and XML Data Interchange Formats: A Case Study[10]

5. A comparison of data serialization formats for optimal efficiency on a mobile platform[11]

6. Comparison of JSON and XML Data Interchange Formats: A Case Study[10]

7. A comparison of data serialization formats for optimal efficiency on a mobile platform[11]

8. Introducing JSON[7]

9. Most Popular APIs: At Least One Will Surprise You[12]

10. Why JSON will continue to push XML out of the picture[13]

11. Thousands of APIs Paint a Bright Future for the Web[14]

12. Why JSON will continue to push XML out of the picture[13]

13. How JSON sparked NoSQL – and will return to the RDBMS fold[15]

14. A Simple Explanation Of ‘The Internet Of Things’[16]

15. Proofpoint Uncovers Internet of Things (IoT) Cyberattack[17]

16. Why JSON will continue to push XML out of the picture[13]

17. Why JSON will continue to push XML out of the picture[13]

18. Thousands of APIs Paint a Bright Future for the Web[14]

19. 3,000 Web APIs: Trends From A Quickly Growing Directory[18]

20. How REST replaced SOAP on the Web: What it means to you[19]

【责任编辑:庞桂玉 TEL:(010)68476606】
点赞 0

(编辑:PHP编程网 - 湛江站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!