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

README.md erratum #37

Open
Lotharyx opened this issue Nov 17, 2023 · 0 comments
Open

README.md erratum #37

Lotharyx opened this issue Nov 17, 2023 · 0 comments

Comments

@Lotharyx
Copy link

The readme makes this claim:

Multi-level Access

To access elements several levels down, the get(key) and array(index) can be used for objects and arrays, respectively:

std::string music_desired = example.array(0).get("hobbies").array(1).get("music");

This is untrue, as json::jobject::get returns a std::string, not a json::jobject.

@Lotharyx Lotharyx changed the title README.md errata README.md erratum Nov 17, 2023
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