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

Is there a way to get the path of a value? #676

Closed
patrick-rotsaert opened this issue Aug 4, 2017 · 2 comments
Closed

Is there a way to get the path of a value? #676

patrick-rotsaert opened this issue Aug 4, 2017 · 2 comments

Comments

@patrick-rotsaert
Copy link

While traversing the json structure I'd like to fetch the path of a certain value, something like "/answer/everything".
Is this possible?

@nlohmann
Copy link
Owner

nlohmann commented Aug 8, 2017

This is currently not possible. Unfortunately, a JSON value has no "knowledge" of its parent, so I am currently not aware of a nice solution.

@patrick-rotsaert
Copy link
Author

Okay, thanks for answering.

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