Merge pull request #4701 from sjrct/patch-1

[json/en] Top level value can be of any type
This commit is contained in:
Marcel Ribeiro-Dantas 2023-07-12 11:05:31 -03:00 committed by GitHub
commit a597f00242
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ contributors:
JSON is an extremely simple data-interchange format. As [json.org](https://json.org) says, it is easy for humans to read and write and for machines to parse and generate. JSON is an extremely simple data-interchange format. As [json.org](https://json.org) says, it is easy for humans to read and write and for machines to parse and generate.
A piece of JSON must represent either: A piece of JSON can be any value of the types listed later, but in practice almost always represents either:
* A collection of name/value pairs (`{ }`). In various languages, this is realized as an object, record, struct, dictionary, hash table, keyed list, or associative array. * A collection of name/value pairs (`{ }`). In various languages, this is realized as an object, record, struct, dictionary, hash table, keyed list, or associative array.
* An ordered list of values (`[ ]`). In various languages, this is realized as an array, vector, list, or sequence. * An ordered list of values (`[ ]`). In various languages, this is realized as an array, vector, list, or sequence.