It's supported by all major programming languages and has become the default choice for most rest apis developed over the past couple of decade. It is also easy for machines to parse and generate Definition and usage the json_encode() function is used to encode a value to json format.
One bite #rainaiscrazy - YouTube
It is easy to read, write, and widely used for communication between a server and a client
It supports objects { } and arrays.
Json is built on two structures A collection of name/value pairs. 679 json (javascript object notation) is a lightweight format that is used for data interchanging It is based on a subset of javascript language (the way objects are built in javascript)
As stated in the mdn, some javascript is not json, and some json is not javascript An example of where this is used is web services responses. Learn what is json — the lightweight data format powering modern apis