Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make syntax as superset of JSON5 #23

Closed
12 tasks done
lahmatiy opened this issue Nov 6, 2020 · 1 comment
Closed
12 tasks done

Make syntax as superset of JSON5 #23

lahmatiy opened this issue Nov 6, 2020 · 1 comment

Comments

@lahmatiy
Copy link
Member

lahmatiy commented Nov 6, 2020

Source: https://json5.org/

  • Objects
    • Object keys may be an ECMAScript 5.1 IdentifierName.

      Approximately the same

    • Objects may have a single trailing comma.
  • Arrays
    • Arrays may have a single trailing comma.
  • Strings
    • Strings may be single quoted.
    • Strings may span multiple lines by escaping new line characters.
    • Strings may include character escapes.
  • Numbers
    • Numbers may be hexadecimal.
    • Numbers may have a leading or trailing decimal point.

      In Jora numbers may have a leading point not trailing

    • Numbers may be IEEE 754 positive infinity, negative infinity, and NaN.
    • Numbers may begin with an explicit plus sign.
  • Comments
    • Single and multi-line comments are allowed.
  • White Space
    • Additional white space characters are allowed.

      Jora uses \s for white spaces, that's a bit wider than defined by JSON5

@lahmatiy
Copy link
Member Author

Shipped in 1.0.0-beta.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant