为什么是XML而不是JSON [英] Why XML but not JSON

查看:64
本文介绍了为什么是XML而不是JSON的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道为什么人们总是在Web服务或应用程序的配置或任何其他数据服务场景中使用xml?我认为JSON是一个很好的数据结构,因为它具有数据格式的清晰表达。

此外,JSON的内存/磁盘成本较低,对吗?

I wonder why people always use xml in web service or application's configuration or any other data service scene?I think JSON is an excellent data struct to do that since it has a clear expression in data format.
Further more, JSON has low memory/disk cost, right?

推荐答案

理论上没有具体的理由可以解释。原因纯粹是历史,文化和社会。更准确地说,你制定的事实并不准确,根本不是事实。您可以声明一种格式比其他格式更常用,几乎没有其他格式。事实上,两者都被使用。



-SA
There is no specific reason which can be explained theoretically. The reason is purely historical, cultural and social. More exactly, the fact you formulated is not accurate, not a fact at all. You could state that one format is used more often than other, hardly anything else. In fact, both are used.

—SA


这篇关于为什么是XML而不是JSON的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆