simpleson icon indicating copy to clipboard operation
simpleson copied to clipboard

README.md erratum

Open Lotharyx opened this issue 2 years ago • 0 comments

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 avatar Nov 17 '23 22:11 Lotharyx