Skip to main content

Module json_ops

Module json_ops 

Source
Expand description

Shared JSON value operations: comparison, coercion, truthiness.

Used by both expression evaluation (computed projections) and scan filters (WHERE predicate evaluation). Pure functions on serde_json::Value.

Functions§

coerced_eq
Check equality with type coercion.
compare_json
Compare two JSON values with type coercion.
compare_json_optional
Compare two optional JSON values (for scan_filter compatibility).
is_truthy
Check if a JSON value is truthy (for boolean contexts).
json_to_display_string
Convert a JSON value to a display string.
json_to_f64
Coerce a JSON value to f64.
to_json_number
Convert a f64 to a JSON number, preferring integer representation.