1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
{
// comments
unquoted: 'and you can quote me on that',
singleQuotes: 'I can use "double quotes" here',
lineBreaks: "Look, Mom! \
No \\n's!",
hexadecimal: 0xdecaf,
leadingDecimalPoint: .8675309, andTrailing: 8675309.,
positiveSign: +1,
trailingComma: 'in objects', andIn: ['arrays',],
"backwardsCompatible": "with JSON",
a: 1e5,
b: 1.e-5,
c: .1e5,
/**
* multiline
* comments
*/
d
: 3,
"e"
// comment
: 4,
foo: "bar",
"bar": "foo",
f //comment
: 5,
constants: [
NaN, Infinity, true, false, null,
{ NaN: NaN,
Infinity: Infinity,
true: true,
false: false,
null: null },
]
}
|