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 更好的情况并不多 。
角注
Introducing JSON ?
XML Tutorial ?
JSON vs. XML: Some hard numbers about verbosity ?
Comparison of JSON and XML Data Interchange Formats: A Case Study ?
A comparison of data serialization formats for optimal efficiency on a mobile platform ?
Comparison of JSON and XML Data Interchange Formats: A Case Study ?
A comparison of data serialization formats for optimal efficiency on a mobile platform ?
Introducing JSON ?
Most Popular APIs: At Least One Will Surprise You ?
Why JSON will continue to push XML out of the picture ?
Thousands of APIs Paint a Bright Future for the Web ?
Why JSON will continue to push XML out of the picture ?
How JSON sparked NoSQL – and will return to the RDBMS fold ?
A Simple Explanation Of ‘The Internet Of Things’ ?
Proofpoint Uncovers Internet of Things (IoT) Cyberattack ?
Why JSON will continue to push XML out of the picture ?
Why JSON will continue to push XML out of the picture ?
Thousands of APIs Paint a Bright Future for the Web ?
3,000 Web APIs: Trends From A Quickly Growing Directory ?
How REST replaced SOAP on the Web: What it means to you ?
via: https://www.cs.tufts.edu/comp/150IDS/final_papers/tstras01.1/FinalReport/FinalReport.html
作者: TOM STRASSNER 选题: lujun9972 译者: wwhio 校对: wxy
本文由 LCTT 原创编译,linux中国 荣誉推出
 
【XML 与 JSON 优劣对比】


推荐阅读