Closed kilasuelika closed 2 years ago
With the syntax that you suggest, there would be a cost with checking for a forward slash that would be paid for all users - even those that are not using the path syntax. Have you had a look at these examples?
https://github.com/boostorg/json/blob/56eaebf1cb1f6ff767cf9a2baa6920c0d2db0022/example/path.cpp#L49
or
https://github.com/boostorg/json/blob/56eaebf1cb1f6ff767cf9a2baa6920c0d2db0022/example/proxy.cpp#L61
?
Note, that we are working on JSON Pointer implementation (https://tools.ietf.org/html/rfc6901). #480
@kilasuelika is JSON Pointer enough for you? Documentation is here: https://www.boost.org/doc/libs/1_79_0/libs/json/doc/html/json/dom/nested_access.html
@kilasuelika is JSON Pointer enough for you? Documentation is here: https://www.boost.org/doc/libs/1_79_0/libs/json/doc/html/json/dom/nested_access.html
It's exactly what I want. Thank you.
I'm wondering if there will be path support in subscript: