开发者

json object composition details

开发者 https://www.devze.com 2023-01-02 18:54 出处:网络
in .json text, is the \'value\' in a basic single pair object the title of a value type (e.g. [string, number, object]), or a value for a typed object (e.g. 2, or \"dog\", or Object3)?

in .json text, is the 'value' in a basic single pair object the title of a value type (e.g. [string, number, object]), or a value for a typed object (e.g. 2, or "dog", or Object3)?

This is how http://w开发者_Python百科ww.json.org/ presents the information:

"An object is an unordered set of name/value pairs. An object begins with { (left brace) and ends with } (right brace). Each name is followed by : (colon) and the name/value pairs are separated by , (comma)."

json object composition details

(source: json.org)


A value.

As an example, the following:

{ "foo": "bar" }

Has a name of 'foo' and a value of 'bar'.

0

精彩评论

暂无评论...
验证码 换一张
取 消