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

JsonParser(errors, putils, errorType) are undocumented #95

Open
EliteMasterEric opened this issue Dec 19, 2023 · 2 comments
Open

JsonParser(errors, putils, errorType) are undocumented #95

EliteMasterEric opened this issue Dec 19, 2023 · 2 comments

Comments

@EliteMasterEric
Copy link
Contributor

EliteMasterEric commented Dec 19, 2023

The arguments to JsonParser are not documented at all, I was trying to figure out if "Unknown variable" can be set to be ignored.

  • errors is an existing array to be populated with errors
  • putils is what?
  • errorType is what?
@elnabo
Copy link
Owner

elnabo commented Dec 20, 2023

Hello

putils and errorType are only used internally and there is almost no reason to use them. putils is used to determine the location of problems. errorType is used to determine how error in subobjects are handled.

errors will contains all the error/warning raised during the parsing. You can't ask to ignore the errors but you are in full control of what to do with the errors.

@EliteMasterEric
Copy link
Contributor Author

I ended up making a patch on my fork which includes the ability to ignore the UnknownVariable error type so I can successfully retrieve a value if there are extra values in the JSON.

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