JSON can be said to be the highlight of JavaScript. It can implement the initialization of Object and Array with elegant and concise code. It is also a text-based data definition, which is more semantic than symbol separation and more concise than XML. Therefore, more and more JS developers use it as data transmission and storage.
JS arrays have many useful methods built-in to facilitate our query and filtering of data. For example, we have a bunch of data:
Copy code
The code is as follows: