An open API service indexing awesome lists of open source software.

https://github.com/acrlabs/json_patch_ext

Helper functions and unofficial extensions for working with json patch in Rust
https://github.com/acrlabs/json_patch_ext

Last synced: 5 months ago
JSON representation

Helper functions and unofficial extensions for working with json patch in Rust

Awesome Lists containing this project

README

          

# json-patch-ext

Unofficial extensions and helper functions for the [json-patch](https://github.com/idubrov/json-patch) crate.

## Features

* Support for the `*` operator when adding/replacing/removing elements: applies the operation to all elements in the
array at that location in the path
* Some nice utility functions for constructing patches
* Automatically create parent references in an add operation: e.g., if your path is `/foo/bar/baz`, and your JSON object
looks like `{"foo": {}}`, the result of the add operation will be `{"foo": {"bar": {"baz": }}}`.
* `matches` function returns the matching paths and values for a query string