json-voorhees
json-voorhees copied to clipboard
Don't rely on exceptions in `value::count_path`
value::count_path
relies on throwing std::out_of_range
or kind_error
to return 0
in cases where the provided path
is not present or otherwise invalid. This is slower than needed. This should use the walk_path
function directly instead.