//! JSON value predicates shared across the converters.
//!
//! The conversion rules test values for truthiness and object-ness. One
//! definition of each rule keeps the modules in step.
use Value;
/// Truthiness for a JSON value. False for null, false, 0, and empty string.
/// True for every other number, every non-empty string, and any object or
/// array.
pub
/// The inverse of [`is_truthy`]. True for null, false, 0, and empty string.
pub
/// True for JSON objects and arrays. The conversion rules treat both as
/// container values that can hold sub-schemas, so arrays count here too.
pub