How many formats does json have?

see that several articles say different things, including the following:

JSON:
1/:key : value; 
2:Array; 

as mentioned in the first one, there is no problem. The second common type of
is this: [{"key1": "value1"}, {"key2": "value2"}]

question:
["hello", "Hello", "", "hee hee"] , is this array json?

Sep.08,2021

counts!

1) juxtaposed data is separated by a comma (",").

2) the mapping is indicated by a colon (":").

3) A collection (array) of juxtaposed data is represented by square brackets ("[]").

4) the set (object) of the mapping is represented by curly braces ("{}").

the above four rules are all content in Json format.

I hope to adopt it!


2 kinds, one kind of object, one kind of array.
1, {"name": "runoob", "alexa": 10000, "site": null} json object
2, ["hello", "Hello", "", "hee hee"] json array

Menu