Crate serde_json_diagnostics

Crate serde_json_diagnostics 

Source
Expand description

A serde_json extension for better deserialization error diagnostics with accurate path tracking.

This crate provides drop-in replacements for serde_json::from_str, serde_json::from_slice, and serde_json::from_reader that return enhanced errors with JSON path information.

§Current Status

Path tracking implementation is pending completion in Phase 4. Currently, the API wraps serde_json functions and returns ErrorDiagnostic type, but path information is not yet captured.

Structs§

ErrorDiagnostic
Enhanced error type with path tracking for JSON deserialization errors.

Functions§

from_reader
Deserialize an instance of type T from an IO stream of JSON.
from_slice
Deserialize an instance of type T from bytes of JSON text.
from_str
Deserialize an instance of type T from a string of JSON text.

Type Aliases§

Result
Type alias for Result with ErrorDiagnostic as the error type.