Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the format of json data

Shulou Source: shulou.com Published: 2022-06-02 06:49:26 11月14日 Update

This article shows you what the json data format is, concise and easy to understand, absolutely can make your eyes shine, through the detailed introduction of this article I hope you can gain something.

What is JSON?

json is short for JavaScript Object Notation, translated as js object notation, simply a lightweight data exchange format.

JSON is a lightweight data exchange format.

JSON takes a completely language-independent text format, but also uses conventions similar to those of the C family. These features make JSON an ideal data exchange language. Easy for humans to read and write, but also easy for machines to parse and generate.

JSON is JavaScript Object Notation.

JSON is a syntax for storing and exchanging text information. Similar to XML.

JSON is smaller, faster, and easier to parse than XML.

Json files are files with the suffix.json.

This file can be opened with Notepad, a browser, or a file editor.

There are many kinds of file editors, such as sublime text, notepad and other file editors can be used to open json files.

In use, json has three structures:

Object: {"name":"Michael","age":24}

Array: [{"name":"Michael","age":24},{"name":"Tom","age":25}]

Value: {"name":"Michael", "birthday":{"month":8,"day":26}}, similar to object nesting.

Many people wonder about the difference between {} and [] forms. See a classic summary:

The braces {} describe a set of "unordered sets of key-value pairs of different types"(each key-value pair can be understood as an attribute description of an OOP), and the square brackets [] describe a set of "ordered sets of data of the same type"(arrays that can correspond to OOPs).

What is the json data format and have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserves, please pay attention to the industry information channel.

Tags: Formats files data objects that is editors languages content skills arrays text knowledge types lightweight lightweight different ordered same concise concise Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Huawei Xiaomi Apple vpn