Home > Web Front-end > JS Tutorial > what is json

what is json

云罗郡主
Release: 2018-12-05 17:39:49
Original
48321 people have browsed it

Many people have heard of json, but don’t know what json is? How to open json format? What is json used for? Let us summarize these issues below.

what is json

What is json?

JSON is a data exchange format and an open format based on a subset of js syntax , which is generally read by programs and uses completely independent other programming languages ​​to store data. The hierarchical structure makes json a data exchange language.

How to open json format?

If we just look at the data, we can use notepad or sublime text3. There are many json online formats on the Internet, and we can also use a browser to open them.

What is json used for?

json is mainly used to transmit strings in data. The objects of json are JSON key/value pairs, arrays and other objects.

What is the relationship between JSON and JS objects?

what is json

Many people always regard JSON and JS as the same concept. In fact, JSON is the representation method of js string, and JSON and js objects are Can be converted to each other. JSON converts the data in js into a string and then passes it before the program. It can be restored in various programming languages. For example, in php, JSON data can be restored into an array. When we use AJAX, If you pass a value by value, JSON will be used to convert the array into a string.

The above is a complete introduction to what json is. If you want to know more about JSON video tutorial, please pay attention to the php Chinese website.


The above is the detailed content of what is json. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template