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

JSON5 Support #132

Open
VaslD opened this issue Jul 10, 2023 · 1 comment
Open

JSON5 Support #132

VaslD opened this issue Jul 10, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@VaslD
Copy link

VaslD commented Jul 10, 2023

Is your feature request related to a problem? Please describe.

No.

Describe the solution you'd like

Would YYJSON support JSON5 standard? It expands the JSON spec to support previously non-standard comments, single quotes, and trailing commas, also adds infinite numbers, multiline strings, and hex representations, etc.

At the moment, I'm more interested in reading JSON5 than having write support. Programs usually have full control of its output, but most inputs may be user-supplied or produced by another program, which may have already adopted JSON5.

Describe alternatives you've considered

Some of these additions in JSON5 can be read/write with YYJSON's nonstandard options, but most of the new syntax is considered invalid JSON, therefore unusable.

Additional context

None.

@ibireme ibireme added the enhancement New feature or request label Jul 10, 2023
@ibireme
Copy link
Owner

ibireme commented Jul 10, 2023

I'll consider it in the future, but it's not a high priority right now. Supporting more non-standard JSON formats could affect the parsing performance of standard JSON. So I need to do more evaluation before making any changes.

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

No branches or pull requests

2 participants