- Notifications
You must be signed in to change notification settings - Fork 105
Closed
Labels
Description
I'm wondering if accessing sub element is a feature that you could implement ?
{ "foo1": "bar", "foo2": "bar2", "foo3": { "sfoo1" : 1, "sfoo2" : "42" } }The idea is to get a direct access to a sub-element like this:
boost::json::object data; //parse data auto &magicNumber = data["foo3.sfoo2"];The path separator would be configurable ("." or "/",...)