当前位置:网站首页>JSON and XML pros and cons
JSON and XML pros and cons
2022-06-12 02:42:00 【generallizhong】
One 、JSON The definition of
A lightweight data exchange format , It has good readability and easy to write quickly . Mainstream technology in the industry provides a complete solution ( It's kind of like regular expressions , Supported by most of today's languages ), So that data can be exchanged between different platforms .JSON Using a highly compatible text format , At the same time, it also has the characteristics similar to C The behavior of the language system .
Two 、XML The definition of
Extended Markup Language (Extensible Markup Language, XML) , A markup language used to mark electronic documents to make them structured , Can be used to tag data 、 Define data types , Is a source language that allows users to define their own markup language . XML It's a standard universal markup language (SGML) Subset , Very suitable Web transmission .XML Provides a unified way to describe and exchange structured data independent of the application or vendor .
3、 ... and 、JSON and XML A comparison of advantages and disadvantages
1、 In terms of readability ,JSON and XML The readability of the data is basically the same .JSON and XML Its readability is comparable , On one side is the suggested grammar , One side is the standard label form , It's hard to tell the difference .
2、 In terms of scalability ,XML It's naturally extensible ,JSON Of course, there are , Nothing is XML Can expand ,JSON No way .
3、 In terms of coding difficulty ,XML There are plenty of coding tools , such as Dom4j、JDom etc. ,JSON Also have json.org Tools provided , however JSON The coding of is obviously better than XML It's a lot easier , You can write... Even without tools JSON Code for , But write well XML It's not so easy .
4、 In terms of decoding difficulty ,XML The resolution of the child node must consider the parent node , It's dizzy , and JSON The difficulty of analysis is almost 0. This point XML What a loser .
5、 In terms of popularity ,XML It has been widely used in the industry , and JSON Just getting started , But in Ajax This particular field , The future development must be XML Give way to JSON. then Ajax Should become Ajaj(Asynchronous Javascript and JSON) 了 .
6、 JSON and XML It also has rich analytical means .
7、 JSON be relative to XML Speaking of , The volume of data is small .
8、 JSON And JavaScript The interaction is more convenient .
9、 JSON The descriptive ratio of data XML Poor .
10、 JSON It's much faster than XML.
边栏推荐
- Navicat for MySQL 11 Linux cracking method
- Swiftyjson analyse les fichiers json locaux
- 力扣解法汇总396-旋转函数
- Force deduction solution summary 905- array sorted by parity
- Min25 sieve
- SwiftyJSON解析本地JSON文件
- One article to show you how to understand the harmonyos application on the shelves
- Force deduction solution summary 449 serialization and deserialization binary search tree
- [digital signal processing] correlation function (energy signal | cross correlation function of energy signal | autocorrelation function of energy signal)
- [digital signal processing] correlation function (finite signal | autocorrelation function of finite signal)
猜你喜欢

Apache simple honeypot

How to use DAO to build a knowledge database with collective wisdom and sustainable incentive mechanism

errno: -4078, code: ‘ECONNREFUSED‘, syscall: ‘connect‘, address: ‘127.0.0.1‘, port: 3306;postman报错

I2C protocol overview

DDD的分层架构

架构入门讲解 - 谁动了我的蛋糕

WPS table learning notes - highlight duplicate values
![[high code file format API] downing provides you with the file format API set Aspose, which can create, convert and operate more than 100 file formats in just a few lines of code](/img/df/f4d311308e9e76c5ae9fdc11c926b8.jpg)
[high code file format API] downing provides you with the file format API set Aspose, which can create, convert and operate more than 100 file formats in just a few lines of code

Ue4\ue5 touch screen touch event: single finger and double finger

微积分复习2
随机推荐
The market value has exceeded $3trillion. Why should apple, which has been criticized as a loser, rise again and again?
如何防止商场电气火灾的发生?
Start ticwatch2
Force deduction solution summary - Sword finger offer II 114 Alien dictionary
alertmanager告警配置
力扣解法汇总883-三维形体投影面积
函数模板 Function Templates
$. map(data,function(item,index){return XXX})
Force deduction solution summary 358 Mini parser
ARD3M电动机保护器在煤炭行业中的应用
Navicat for MySQL 11 Linux cracking method
[digital signal processing] correlation function (power signal | cross correlation function of power signal | autocorrelation function of power signal)
Quelles sont les solutions dans tous les domaines?
2022 Fujian Provincial Safety Officer C certificate (full-time safety officer) examination simulation 100 questions and answers
Several common instructions for virsh to create / shut down / stop virtual machines
Application of residual pressure monitoring system in high-rise civil buildings
Force deduction solution summary 398 random number index
Min25 sieve
【无标题】2022煤矿安全检查考题及在线模拟考试
Graduation design of fire hydrant monitoring system --- thesis (add the most comprehensive hardware circuit design - > driver design - > Alibaba cloud Internet of things construction - > Android App D