当前位置:网站首页>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
边栏推荐
猜你喜欢
Slave should be able to synchronize with the master in tests/integration/replication-psync. tcl
LeetCode 1450 - 1453
Renesas electronic MCU RT thread development and Design Competition
Android 高阶面试必问:全局业务和项目的架构设计与重构
C语言 171. 最近回文数
Modify the content of MySQL + PHP drop-down box
[XJTU computer network security and management] Lecture 2 password technology
Linux redis - redis database caching service
C language 171 Number of recent palindromes
Machine learning (Zhou Zhihua) Chapter 14 probability graph model
随机推荐
谷雨
leetcode 烹饪料理
Android 高阶面试必问:全局业务和项目的架构设计与重构
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.
Day 3 of learning rhcsa
Leangoo brain map - shared multi person collaborative mind mapping tool
Push data from onenet cloud platform to database
Log4j知识点记录
Linux redis - redis ha sentinel cluster construction details & redis master-slave deployment
Win view port occupation command line
OCR recognition PDF file
The second day of learning rhcsa
5W of knowledge points
Solve the problem that PowerShell mining occupies 100% of cpu7 in win7
Jz76 delete duplicate nodes in linked list
Interpretation of the future development of smart agriculture
JS using the parameters of art template
JZ22 链表中倒数最后k个结点
基于Scrum进行创新和管理
Airtrack cracking wireless network password (Dictionary running method)