26 lines
408 B
JSON
26 lines
408 B
JSON
[
|
|
{
|
|
'//': 'JSON5 allow `Infinity` and `NaN`',
|
|
numbers: [
|
|
Infinity,
|
|
-Infinity,
|
|
NaN,
|
|
],
|
|
Infinity: NaN,
|
|
NaN: Infinity,
|
|
NaN: -Infinity,
|
|
},
|
|
{
|
|
'//': 'JSON5 numbers',
|
|
hexadecimal: 0xdecaf,
|
|
leadingDecimalPoint: .8675309, andTrailing: 8675309.,
|
|
positiveSign: +1,
|
|
},
|
|
{
|
|
'//': 'JSON5 strings',
|
|
singleQuotes: 'I can use "double quotes" here',
|
|
lineBreaks: "Look, Mom! \
|
|
No \\n's!",
|
|
}
|
|
]
|