Crate rjd

Crate rjd 

Source
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§

LoadConfig
Configuration for JSON loading with resource limits

Enums§

RjdError
Custom error type for rjd operations
SymlinkPolicy
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