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

Not all fields it supports #62

Open
AldieNightStar opened this issue Aug 24, 2024 · 3 comments
Open

Not all fields it supports #62

AldieNightStar opened this issue Aug 24, 2024 · 3 comments

Comments

@AldieNightStar
Copy link

When i add 3+ fields using just space, it shows me Error: End of input while parsing an object (missing '}') at line 1,38 >>> name: "Haxi" age: 3 ....

{ name: "Haxi" age: 32" } - this is working
{ name: "Haxi" age: 32 role: "Admin" } - this is not

I am developer of Novel Engine, and it's currently in progress, so i thinking to take this as a library to parse HJson for it. It's free for everyone but still in development. So i considering it as a novel script language that can be easily parsed

@trobro
Copy link
Member

trobro commented Aug 31, 2024

When placing several fields on the same line they need to be separated by commas. This should work:

{ name: "Haxi", age: 32, role: "Admin" }

@AldieNightStar
Copy link
Author

It would be great to make it tweakable to parse with commas or ignore. It still good

@trobro
Copy link
Member

trobro commented Aug 31, 2024

Thanks! If you put fields on separate lines commas are not needed, but I will let this issue remain open in case anyone wants to create a PR for it.

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

2 participants