File: json5

package info (click to toggle)
ruby-rouge 4.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,836 kB
  • sloc: ruby: 38,168; sed: 2,071; perl: 152; makefile: 8
file content (44 lines) | stat: -rw-r--r-- 668 bytes parent folder | download | duplicates (2)
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 },
  ]
}