jsonptr
jsonptr copied to clipboard
JSON Pointer (RFC 6901) implementation for Rust
Taking a page out of the `std::path` book, I figured it'd be nice to have most operations using `Pointer`s operate on string slices instead of owned strings. This significantly helps...
When used as an operator, the term `union` conventionally alludes to the set theoretical definition. From Wikipedia: > In [set theory](https://en.wikipedia.org/wiki/Set_theory), the union (denoted by ∪) of a collection of...
**Suggestion** Do you think there is the potential of adding Regex? I know there is already a crate for Rust Regex: https://docs.rs/regex/latest/regex/
Currently `Poiinter::tokens` returns an iterator of `Token`, but in doing so omits the root. This is not ideal. `Token` should be an enum consisting of two possible options, `Root` and...
So I'm not sure about this pull request at all. The original idea was to add `walk_to` and `walk_from` to `Resolve` / `ResolveMut`. I'm not crazy about the signature: ```rust...
Remove useless tests.
Add fluid methods to `Pointer` that mutate in place and return a new instance. - with token appended - with token prepended - with first token removed (maybe? - dont...
Per our discussion, we need a way to index a token. With the index, at minimum, we need to be able to split a pointer at it, retrieve the token,...
The implicit decoding of `Token` when converting to a string needs to be made more clear. This behavior is somewhat confusing due to fact that it is does not align...