The string you give in the example fully satisfies the specifications.
JSON is built on two structures:
A collection of name / value pairs. In various languages, this is a record, struct, dictionary, hash table, keyed list, or associative array.
An ordered list of values. As an array , vector, list, or sequence.
... An array is an ordered collection of values. An array begins with [(left bracket) and ends with] (right bracket). Values are separated by, (comma).
A number of quotes, or a number , or a true or false or null, or an object . These structures can be nested.
Original article
Transfer:
JSON is built on two structures.
- A collection of key / value pairs. In different languages, this concept is implemented as an object , record, structure, dictionary, hash, named list, or associative array.
- An ordered list of values. In most languages, this is implemented as an array , vector, list, or sequence.
... array is an ordered collection of values. The array begins with [(the opening square bracket) and ends with] (the closing square bracket). Values are separated, (comma).
The value can be a string in double quotes, a number , true, false, null, an object or an array . These structures can be nested.
Original article
Thus, in the string we have an array, the first element of which is another array, both of which are the strings "test2" and "test2", the next element is the string "yo1", and so on.