demo/kitchen-sink/docs/json5.json5
raw| 1 | { |
| 2 | foo: 'bar', |
| 3 | while: true, |
| 4 | |
| 5 | this: 'is a \ |
| 6 | multi-line string', |
| 7 | |
| 8 | // this is an inline comment |
| 9 | here: 'is another', // inline comment |
| 10 | |
| 11 | /* this is a block comment |
| 12 | that continues on another line */ |
| 13 | |
| 14 | hex: 0xDEADbeef, |
| 15 | half: .5, |
| 16 | delta: +10, |
| 17 | to: Infinity, // and beyond! |
| 18 | |
| 19 | finally: 'a trailing comma', |
| 20 | oh: [ |
| 21 | "we shouldn't forget", |
| 22 | 'arrays can have', |
| 23 | 'trailing commas too', |
| 24 | ], |
| 25 | } |