Skip to content

Conversation

@hovancik
Copy link

This PR changes error reporting, making it point to the start of the string, as suggested in 287 (closes #287).

Before parsing begins, the code now takes a snapshot of the position and if needed, use that to construct the error.
I've created new regression tests that should cover the changes, and also fixed existing older tests with the new behavior.

I guess the question remains if this is breaking change, or not.

make it point to the start of the value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Errors from Visitor should point to beginning of the object

1 participant