pub fn extract_field(
bytes: &[u8],
field: &str,
) -> TransportResult<Option<Value>>Available on crate feature
transport only.Expand description
Extract a field from JSON bytes without full parsing.
This is a simple implementation. For high-performance field extraction,
use sonic-rs get_from_slice() in performance-critical code.
ยงErrors
Returns error if the bytes are not valid JSON or field is not found.