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 "/",...)
This is RFC6901, as it's done by rapidjson for example
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:
The path separator would be configurable ("." or "/",...)
This is RFC6901, as it's done by rapidjson for example