开发者

json object composition details

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜