test.json5 765 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /////////////////////////////////////////////////
  2. // This is an example JSON5 config
  3. // which is fun to write
  4. // and freakin' fast to read!
  5. // Config Mode: ON
  6. //
  7. $schema: 'http://json5.org',
  8. name: "Hello",
  9. "name2" : "Lord",
  10. 'name3' : 'Sailor // no commentary\' here',
  11. name4 : "Peasant",
  12. multiline: "Hello \
  13. Darkness, \
  14. my old friend.",
  15. // this is a comment
  16. /* Block commentary
  17. is allowed in
  18. JSON5 :)
  19. */
  20. blocker: "// this is a comment /* don't crash */ ",
  21. // backtick multi-line strings (optional)
  22. backtick: `
  23. function foo(bar) {
  24. return bar*bar;
  25. }
  26. `,
  27. beyond: Infinity,
  28. not_a_number: -NaN,
  29. meta: {
  30. a: 3,
  31. b: .4,
  32. val: 3.34e+12,
  33. hex: 0xDEADbeef,
  34. trailing_dot: 4.,
  35. },