json和XML有什么区别? [英] What is the difference between json and XML?

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

问题描述

json和XML有什么区别?在使用android时在性能方面哪个更好?为什么将json描述为轻量级的?

What is the difference between json and XML?Which is better in performance aspect while working with android?Why json is described as lightweight?

推荐答案

建议您首先阅读以下链接

I suggest you to read the following link below first

JSON和XML比较

第一条评论清楚地解释了您的前两个问题.

The first comment clearly explains your first two questions.

,对于最后一个问题,我的建议是 JSON ,原因是JSON的重量轻,并且与XML格式相比非常易于处理和解析.我也相信 JSON在很多方面都开始超越XML技术. Web上有无数的示例和讨论来支持XML上的JSON格式.

and for the last question my suggestion would be JSON, The reason is that JSON is light weight and also its very easy to handle and parse when comparing to XML formats. also I believe that JSON started overtaking the technology over XML in many aspects. There are tons and tons of examples and discussions available in web to support the JSON format over XML.

对于Android而言,由于它是一种将在未来几十年统治世界的技术,因此您必须决定是否需要选择逐渐衰落的旧技术(XML)正在发展的新技术(JSON).选择是您的.

And for Android, since it is a technology which is going to rule the world for next few decades you must decide whether you need to choose the older technology(XML) which is getting down or the newer technology (JSON) which is growing up. The choice is yours.

这篇关于json和XML有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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