当前位置:网站首页>JSON preliminary understanding
JSON preliminary understanding
2022-07-28 10:53:00 【Much less】
JSON Preliminary understanding
Full name :Javascript Object Notation
It's a text format for data exchange , stay 2001 Was proposed in , The purpose is to replace the heavy XML.
It is a transmission format supported by both front and back ends .
JSON It's an independent language , Essentially a string , Not object .
matters needing attention :
1. String must use double quotes , You can't use single quotes .
2. The last value cannot be followed by a comma .
3. Must be decimal , Cannot be hexadecimal .
4. The value of the original type is only 4 Kind of : character string , The number , Boor and null. Out of commission NaN,Infinity and undefined.
5.JSON You can't put it in the function
6.JSON In the process of data transmission, it must be String type .
JSON The transformation method of :
JSON.stringify( ) To JSON Format
JSON.parse( ) hold JSON Format to JS object
JSON How to write it :
{"name":" value "}
XML How to write it :
XML Customizable labels
<name> value </name>
边栏推荐
猜你喜欢

GKRidgedNoiseSource

Two years of crud, two graduates, two months of preparation for the interview with ALI, and fortunately won the offer grading p6

Pyqt5 rapid development and practice 4.12 calendar and time

PyQt5快速开发与实战 4.13 菜单栏、工具栏与状态栏 and 4.14 QPrinter

SQL Server 2016 learning record - nested query

这里有一份超实用Excel快捷键合集(常用+八大类汇总)

The 10th Landbridge cup embedded electronic provincial competition

蓝桥杯嵌入式-HAL库-USART_TX

ICML 2022 | graph represents the structure aware transformer model of learning

乱打日志的男孩运气怎么样我不知道,加班肯定很多
随机推荐
GKARC4RandomSource
I don't know how lucky the boy who randomly typed logs is. There must be a lot of overtime
PyQt5快速开发与实战 4.13 菜单栏、工具栏与状态栏 and 4.14 QPrinter
Blue Bridge Cup embedded Hal library LCD
7. MapReduce custom sorting implementation
Select without the order by clause, the order of the returned results is not reliable
GKCylindersNoiseSource
19. Delete the penultimate node of the linked list
RoboCup (2D) experiment 50 questions and the meaning of main functions
图片滑动特效
Excel word simple skills sorting (continuous update ~)
剑指 Offer 06. 从尾到头打印链表
GKRidgedNoiseSource
8. Detailed explanation of yarn system architecture and principle
GKCoherentNoiseSource
Install MySQL based on docker
OCR knowledge summary
学会这些分析方法及模型,遇到问题不再没思路
一文学会如何做电商数据分析(附运营分析指标框架)
The 10th Landbridge cup embedded electronic provincial competition