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:
(source: json.org)"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)."
A value.
As an example, the following:
{ "foo": "bar" }
Has a name of 'foo' and a value of 'bar'.
精彩评论