pub fn compare_json_optional(a: Option<&Value>, b: Option<&Value>) -> Ordering
Compare two optional JSON values (for scan_filter compatibility).