• Patrick Boettcher's avatar
    allow push_back() and pop_back() calls on json_pointer · 9225cf2f
    Patrick Boettcher authored
    Putting pop_back() to public and creating a trivial push_back()
    method allows users of nlohmann::json_pointer to manipulate an
    existing json-pointer by adding or removing keys at the end.
    
    This is useful for traversing a JSON-instance and keeping track
    of its "absolute path" at any moment.
    
    In my case for a schema-validator error-handler.
    9225cf2f
json_pointer.hpp 25 KB