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

Position Tracking #5

Open
ghost opened this issue Apr 11, 2023 · 1 comment
Open

Position Tracking #5

ghost opened this issue Apr 11, 2023 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 11, 2023

I think this is a good JSON parser, but position tracking could be very handy in debugging. It is hard to find an error in the JSON string when you don't know where it is. Position tracking can be added for example with pos method on JsonReader struct.

@Tpt
Copy link
Contributor

Tpt commented Sep 23, 2023

The 0.2 release will replace the std::io::Error error type with SyntaxError that allows to get the error position. I have tagged 0.2.0-alpha.1 that makes this new API accessible. Here is the documentation of the new position access method. Does it covers your use-case?

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