Skip to content

JSON5 is not supported by STJ #1

Description

@kzu

Description

See https://json5.org

Reproduction Steps

Try to parse the kitchen sink example from json5.org:

{
  // 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",
}

Expected behavior

Parses fine.

Actual behavior

Fails

Regression?

No

Known Workarounds

No response

Configuration

No response

Other information

No response

Back this issue
Back this issue

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions