-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
how to find subelement without loop #1490
Comments
You can use JSON Pointers to access an element if you can provide its full address in the hierarchy of JSON document e.g. I'm not sure whether there is a method to look up for |
no dont working, i become null pointer. |
Assuming your JSON value is |
|
@garethsb-sony: Whoops. Thanks for clarification! |
@nickaein I just didn't want anyone to think the |
i hae normal json file structure like
want to find "subelement2" or"subelement""subelement2" without looping, is there function like find , exist, contain without iterating?
What is the issue you have?
Please describe the steps to reproduce the issue. Can you provide a small but working code example?
What is the expected behavior?
And what is the actual behavior instead?
Which compiler and operating system are you using? Is it a supported compiler?
Did you use a released version of the library or the version from the
develop
branch?If you experience a compilation error: can you compile and run the unit tests?
The text was updated successfully, but these errors were encountered: