views:

20

answers:

1

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://www.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)."

alt text

A: 

A value.

As an example, the following:

{ "foo": "bar" }

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

Benno
Close, but not JSON. This is: `{ "foo": "bar" }`
Thanatos
Fixed, thanks. I've been too much actual Javascript. =)
Benno