123456789101112131415161718192021222324252627282930313233343536373839404142 |
- /////////////////////////////////////////////////
- // This is an example JSON5 config
- // which is fun to write
- // and freakin' fast to read!
- // Config Mode: ON
- //
- $schema: 'http://json5.org',
- name: "Hello",
- "name2" : "Lord",
- 'name3' : 'Sailor // no commentary\' here',
- name4 : "Peasant",
- multiline: "Hello \
- Darkness, \
- my old friend.",
- // this is a comment
- /* Block commentary
- is allowed in
- JSON5 :)
- */
- blocker: "// this is a comment /* don't crash */ ",
- // backtick multi-line strings (optional)
- backtick: `
- function foo(bar) {
- return bar*bar;
- }
- `,
- beyond: Infinity,
- not_a_number: -NaN,
- meta: {
- a: 3,
- b: .4,
- val: 3.34e+12,
- hex: 0xDEADbeef,
- trailing_dot: 4.,
- },
|