什么是JSON5

JSON5,支持注释,不需要引号和一些其它升级功能 JSON5, which is similar to JSON but supports comments, unquoted keys, trailing commas, and other features.
更新于: 2022-05-09 22:27:56
{
  // 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",
}