Expand description
RJD - Rust JSON Diff library
This library provides JSON comparison and diff functionality.
Re-exports§
pub use formatter::create_formatter;pub use ignore::load_all_ignore_patterns;pub use ignore::load_ignore_patterns;pub use json_path::JsonPath;pub use json_path::ParseError;pub use json_path::PathSegment;pub use types::Change;pub use types::Changes;
Modules§
- formatter
- Formatter module for outputting diff results
- ignore
- json_
path - Type-safe JSON path representation and manipulation
- types
Structs§
- Load
Config - Configuration for JSON loading with resource limits
Enums§
- RjdError
- Custom error type for rjd operations
- Symlink
Policy - Symlink following policy
Functions§
- diff
- Main diff function - compares two JSON values and returns all changes
- load_
json_ file - Load and parse a JSON file
- load_
json_ file_ with_ config - Load and parse a JSON file with resource limits
- load_
json_ file_ with_ config_ and_ policy - Load and parse a JSON file with resource limits and symlink policy
- load_
json_ input - Load JSON from either a file path or an inline JSON string The function will try to parse the input as JSON first (only objects/arrays), and if that fails, it will try to load it as a file path.
- load_
json_ input_ with_ config - Load JSON from either a file path or an inline JSON string with resource limits
- load_
json_ input_ with_ config_ and_ policy - Load JSON from either a file path or an inline JSON string with resource limits and symlink policy
- load_
json_ input_ with_ config_ policy_ and_ inline - Load JSON with resource limits, symlink policy, and inline flag
- load_
json_ stdin - Load JSON from stdin
- load_
json_ stdin_ with_ config - Load JSON from stdin with resource limits