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

Feature request: ability to get the path of JsonVariant in a document #1647

Open
gwisp2 opened this issue Sep 1, 2021 · 0 comments
Open

Comments

@gwisp2
Copy link

gwisp2 commented Sep 1, 2021

Hello!
Thanks for the great library!

I suggest adding ability to get the path of JsonVariant in a document, or at least to check that two JsonVariant point to the same location of the document. The latter can be used to implement the former by traversing the whole document. As I understand JsonVariant::operator==() compares content, not pointers.

My usecase: I parse some JSON structures received from network and if parsing fails I would like to easily send back error messages with the exact path to json part that caused a parsing error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants