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
- Host: GitHub
- URL: https://github.com/acrlabs/json_patch_ext
- Owner: acrlabs
- License: mit
- Created: 2024-11-08T18:13:29.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-08-13T04:42:24.000Z (10 months ago)
- Last Synced: 2026-01-15T15:38:12.267Z (5 months ago)
- Language: Rust
- Size: 41 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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