当前位置:网站首页>JSON data text
JSON data text
2022-04-23 02:48:00 【REMLILI】
JSON data
One 、 Basics
( One ) The essence : Text
1、 Concept
Javascript grammar
Data objects
Lightweight text data interchange format
Independent
2、 features
Pure text
Can be read
Median value ( Hierarchy )
JS analysis
data AJAX transmission
No end tag
short
fast
Built in method analysis
Array
No reserved words
( Two ) grammar :JavaScript object
The data is in the name / Value alignment
Data consists of commas , Separate
Curly braces {} Save the object
brackets [] Save array , An array can contain multiple objects
( 3、 ... and ) name / It's worth it :(key : value)
"name" : " The Chinese people "
1、value: value
Numbers ( Integer or floating point number ):{ "age":30 }
character string ( In double quotes )
Boolean value (true or false): Boolean value
{ "flag":true }
Array ( In brackets ):[]
{ "sites": [
{ "name":" Novice tutorial " , "url":"www.runoob.com" },
{ "name":"google" , "url":"www.google.com" },
{ "name":" Microblogging " , "url":"www.weibo.com" }
]
}
object ( In braces ):{ "name":" Novice tutorial " , "url":"www.runoob.com" }
null:{ "runoob":null }
( Four ) Format :
file type —— .json
MIME The type is ——application/json
( 5、 ... and ) Compare :
{
"sites": [
{ "name":" Novice tutorial " , "url":"www.runoob.com" },
{ "name":"google" , "url":"www.google.com" },
{ "name":" Microblogging " , "url":"www.weibo.com" }
]
}
<sites>
<site>
<name> Novice tutorial </name> <url>www.runoob.com</url>
</site>
<site>
<name>google</name> <url>www.google.com</url>
</site>
<site>
<name> Microblogging </name> <url>www.weibo.com</url>
</site>
</sites>
版权声明
本文为[REMLILI]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220741227379.html
边栏推荐
- 【工欲善其事必先利其器】论文编辑及文献管理(Endnote,Latex,JabRef ,overleaf)资源下载及使用指南
- 字符串去掉空格问题
- OCR recognition PDF file
- @Usage and difference between mapper and @ repository
- The shell monitors the depth of the IBM MQ queue and scans it three times in 10s. When the depth value exceeds 5 for more than two times, the queue name and depth value are output.
- MySQL function syntax
- PIP install shutil reports an error
- Six very 6 computer driver managers: what software is good for driver upgrade? Recommended by the best computer driver management software abroad
- 基于多态的职工管理系统源码与一些理解
- Linux Redis——Redis 数据库缓存服务
猜你喜欢

Actual combat of industrial defect detection project (IV) -- ceramic defect detection based on hrnet

Looking for a job, writing a resume to an interview, this set of information is enough!

Efficient music format conversion tool Music Converter Pro

JVM runtime data area (I)

LeetCode 1450 - 1453

windows MySQL8 zip安装
![[XJTU計算機網絡安全與管理]第二講 密碼技術](/img/b0/263e8dcbfeb2ce9f504a9c8eb76b07.png)
[XJTU計算機網絡安全與管理]第二講 密碼技術

Jupyter for local and remote access to ECS

Airtrack cracking wireless network password (Dictionary running method)
![[XJTU computer network security and management] Lecture 2 password technology](/img/b0/263e8dcbfeb2ce9f504a9c8eb76b07.png)
[XJTU computer network security and management] Lecture 2 password technology
随机推荐
机器学习(周志华) 第十四章概率图模型
The way to conquer C language
The express project changes the jade template to art template
Codeforces round 784 (Div. 4) (a - H)
Preliminary understanding of stack and queue
Mosaic Routing: implement / home / news
Looking for a job, writing a resume to an interview, this set of information is enough!
Deploying sbert model based on torchserve < semantic similarity task >
@Usage and difference between mapper and @ repository
Kubernetes - Introduction to actual combat
LeetCode 1450 - 1453
Linux Redis——Redis 数据库缓存服务
Difference between relative path and absolute path (often asked in interview)
基于Scrum进行创新和管理
Push data from onenet cloud platform to database
The input of El input input box is invalid, and error in data(): "referenceerror: El is not defined“
The second day of learning rhcsa
JZ35 replication of complex linked list
[hcip] detailed explanation of six LSAS commonly used by OSPF
JZ76 删除链表中重复的结点